Morph
for an elm/core
Float
decimalOrException : MorphOrError Basics.Float (Result Decimal.Exception Decimal) error_
Morph.OneToOne
from a Decimal
or Exception
to a Float
Keep in mind that Decimal -> Float
can be lossy
since Float
is fixed in bit size while Decimal
is not