Module
Data.Float32
- Package
- purescript-float32
- Repository
- purescript-contrib/purescript-float32
#fromNumber Source
fromNumber :: Number -> Maybe Float32
Uses Math.fround()
to convert to a Float32
.
Returns Nothing
when outside the range.
#fromNumber' Source
fromNumber' :: Number -> Float32
Uses Math.fround()
to convert to a Float32
.
Returns 0.0 when outside the range.
- Modules
- Data.
Float32 - Data.
Float32. Gen