hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 5485a198ec9a4136ab988ce509b539e0eb60219d
parent 97fd556519f608ce0bbd3bd53419fb7b75a42fc3
Author: Ember Sawady <ecs@d2evs.net>
Date:   Mon,  6 Nov 2023 21:07:58 +0000

strconv::{ffmt, fflags}: improve default values

Signed-off-by: Ember Sawady <ecs@d2evs.net>

Diffstat:
Mstrconv/ftos.ha | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/strconv/ftos.ha b/strconv/ftos.ha @@ -12,18 +12,19 @@ use types; // Format styles for the [[ftosf]] functions. export type ffmt = enum { + // General format. Uses whichever of E and F is shortest, not accounting + // for flags. + G, // Scientific notation. Consists of a number in [1, 10), an 'e' (or 'E', // if UPPER_EXP flag is present), then an exponent. E, // Fixed-point notation. F, - // General format. Uses whichever of E and F is shortest, not accounting - // for flags. - G, }; // Flags for the [[ftosf]] functions. export type fflags = enum uint { + NONE = 0, // Use a sign for both positive and negative numbers. SHOW_POS = 1 << 0, // Include at least one decimal digit.