Module
Global
- Package
- purescript-globalsDEPRECATED
- Repository
- purescript/purescript-globals
This module defines types for some global Javascript functions and values.
#toExponential Source
toExponential :: Int -> Number -> Maybe String
Formats Number as String in exponential notation limiting number of digits
after the decimal dot. May return Nothing
when specified number of
digits is less than 0 or greater than 20 depending on the implementation.
See ECMA-262 for more information.
#toPrecision Source
toPrecision :: Int -> Number -> Maybe String
Formats Number as String in fixed-point or exponential notation rounded
to specified number of significant digits. May return Nothing
when
precision is less than 1 or greater than 21 depending on the
implementation. See ECMA-262 for more information.
- Modules
- Global
- Global.
Unsafe