| Standard ML Basis Library |
structure IEEEReal : IEEE_REAL =
struct
structure Int = Int31
type decimal_approx =
{kind : float_class, sign : bool, digits : int list, exp : int}
datatype real_order = LESS | EQUAL | GREATER | UNORDERED
datatype nan_mode = QUIET | SIGNALLING
datatype float_class = NAN of nan_mode | INF | ZERO | NORMAL | SUBNORMAL
datatype rounding_mode = TO_NEAREST | TO_NEGINF | TO_POSINF | TO_ZERO
exception Unordered
val ctlRoundingMode
val intToRM
val setRoundingMode'
val setRoundingMode : rounding_mode -> unit
val getRoundingMode : unit -> rounding_mode
val toString : decimal_approx -> string
val scan
: (char, 'a) StringCvt.reader -> (decimal_approx, 'a) StringCvt.reader
val fromString : string -> decimal_approx option
end
Type detail |
---|
type decimal_approx =
{kind : float_class, sign : bool, digits : int list, exp : int}
Datatype detail |
---|
datatype real_order = LESS | EQUAL | GREATER | UNORDERED
datatype nan_mode = QUIET | SIGNALLING
datatype float_class = NAN of nan_mode | INF | ZERO | NORMAL | SUBNORMAL
datatype rounding_mode = TO_NEAREST | TO_NEGINF | TO_POSINF | TO_ZERO
DataConstructor detail |
---|
constructor LESS : real_order
constructor EQUAL : real_order
constructor GREATER : real_order
constructor UNORDERED : real_order
constructor QUIET : nan_mode
constructor SIGNALLING : nan_mode
constructor NAN : nan_mode -> float_class
constructor INF : float_class
constructor ZERO : float_class
constructor NORMAL : float_class
constructor SUBNORMAL : float_class
constructor TO_NEAREST : rounding_mode
constructor TO_NEGINF : rounding_mode
constructor TO_POSINF : rounding_mode
constructor TO_ZERO : rounding_mode
Value detail |
---|
val ctlRoundingMode
val intToRM
val setRoundingMode'
val setRoundingMode : rounding_mode -> unit
val getRoundingMode : unit -> rounding_mode
val toString : decimal_approx -> string
val scan : (char, 'a) StringCvt.reader -> (decimal_approx, 'a) StringCvt.reader
val fromString : string -> decimal_approx option
Exception detail |
---|
exception Unordered
| Standard ML Basis Library |
This document may be distributed freely over the internet as long as the copyright notice and license terms below are prominently displayed within every machine-readable copy.
Copyright © 2003 AT&T and Lucent Technologies. All rights reserved.
Permission is granted for internet users to make one paper copy for their
own personal use. Further hardcopy reproduction is strictly prohibited.
Permission to distribute the HTML document electronically on any medium
other than the internet must be requested from the copyright holders by
contacting the editors.
Printed versions of the SML Basis Manual are available from Cambridge
University Press.
To order, please visit
www.cup.org (North America) or
www.cup.cam.ac.uk (outside North America). |