Module

Data.Float32

Package
purescript-float32
Repository
athanclark/purescript-float32

#fromNumber Source

fromNumber :: Number -> Maybe Float32

Uses Math.fround() to convert to a 32bit float

#fromNumber' Source

fromNumber' :: Number -> Float32

Casts to 0 when outside the range.