

The optional integer value specifies the maximum number of significant digits, with 12 being the default. The third constructor GEN allows a formatting function to use either the scientific or fixed-point notation, typically guided by the magnitude of the number. In particular, if 0 is specified, there should be no fractional part. The optional integer value specifies the number of decimal digits to appear after the decimal point, with 6 being the default. The first two correspond to scientific and fixed-point representations, respectively.

Values of type realfmt are used to specify the format of a real or floating-point number. The values of type radix are used to specify the radix of a representation of an integer, corresponding to the bases 2, 8, 10 and 16, respectively. Val scanString : ((char, cs) reader -> ('a, cs) reader) -> string -> 'a option Val skipWS : (char, 'a) reader -> 'a -> 'a Val dropl : (char -> bool) -> (char, 'a) reader ->'a -> 'a Val takel : (char -> bool) -> (char, 'a) reader ->'a -> string Val splitl : (char -> bool) -> (char, 'a) reader ->'a -> (string * 'a) Val padRight : char -> int -> string -> string Val padLeft : char -> int -> string -> string Type ('a, 'b) reader = 'b -> ('a * 'b) option Interface datatype radix = BIN | OCT | DEC | HEX The StringCvt structure provides types and functions for handling the conversion between strings and values of various basic types. The StringCvt structure The Standard ML Basis Library
