server-reason-react.js
Js.Float
Provides functions for inspecting and manipulating floats
float
browser_ppx
melange_native_ppx
server-reason-react.base32
server-reason-react.belt
server-reason-react.dom
server-reason-react.expand-styles-attribute
server-reason-react.fetch
server-reason-react.html
server-reason-react.promise-js
server-reason-react.promise-native
server-reason-react.react
server-reason-react.react-server-dom-esbuild
server-reason-react.reactDom
server-reason-react.runtime
server-reason-react.url_js
server-reason-react.url_native
server-reason-react.webapi
server-reason-react.xxhash
server_reason_react_ppx
type t = float
val _NaN : t
val isNaN : t -> bool
val isFinite : t -> bool
val isInteger : t -> bool
Returns true if the value is a finite number with no fractional part
val toExponential : ?digits:int -> t -> string
Formats a number in exponential notation.
Invalid_argument
if digits is not in range 0-100
val toFixed : ?digits:int -> t -> string
Formats a number with fixed-point notation.
Failure
val toPrecision : ?digits:int -> t -> string
Formats a number with the specified number of significant digits.
if digits is not in range 1-100
val toString : ?radix:int -> t -> string
Converts a number to a string. Optionally specify a radix (2-36).
if radix is not in range 2-36
val fromString : string -> t