Module
Data.UInt
- Package
- purescript-uint
- Repository
- purescript-contrib/purescript-uint
#fromNumber Source
fromNumber :: Number -> UInt
Cast a Number
n
to UInt
by performing 0-bit unsigned right
shift n >>> 0
.
#fromNumber' Source
fromNumber' :: Number -> Maybe UInt
Convert a Number
which is already an UInt
to UInt
. Fails
for non-integers and integers not in range from 0
to 2^32-1
.
- Modules
- Data.
UInt - Data.
UInt. Gen