sml Numeric Types Real


Example

Real Number Basics

- 6.0;
val it = 6.0 : real
- ~6.0;
val it = ~6.0 : real
- 6.0 + ~6.0;
val it = 0.0 : real
- 6.0 / 3.0;
val it = 2.0 : real
- 4.0 / 6.0;
val it = 0.666666666667 : real

Real Value Bounds

Using Real Basis Library Functions

- Real.maxFinite;
val it = 1.79769313486E308 : real
- Real.minPos;
val it = 4.94065645841E~324 : real
- Real.minNormalPos;
val it = 2.22507385851E~308 : real

Infinity

- Real.posInf;
val it = inf : real
- Real.negInf;
val it = ~inf : real