- float : Type
- val : s.float
- lt : s.float → s.float → Prop
- le : s.float → s.float → Prop
- decLt : DecidableRel s.lt
- decLe : DecidableRel s.le
Instances For
Equations
- instInhabitedFloat = { default := { val := floatSpec.val } }
Equations
- floatDecLt a b = Float.decLt a b
Equations
- floatDecLe a b = Float.decLe a b
If the given float is positive, truncates the value to the nearest positive integer. If negative or larger than the maximum value for UInt8, returns 0.
If the given float is positive, truncates the value to the nearest positive integer. If negative or larger than the maximum value for UInt16, returns 0.
If the given float is positive, truncates the value to the nearest positive integer. If negative or larger than the maximum value for UInt32, returns 0.
If the given float is positive, truncates the value to the nearest positive integer. If negative or larger than the maximum value for UInt64, returns 0.
If the given float is positive, truncates the value to the nearest positive integer. If negative or larger than the maximum value for USize, returns 0.
Equations
- instToStringFloat = { toString := Float.toString }
Equations
- instReprFloat = { reprPrec := fun n x => Std.Format.text (Float.toString n) }
Efficiently computes x * 2^i
.