package server-reason-react

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Js.FloatSource

Provides functions for inspecting and manipulating floats

Sourcetype t = float
Sourceval _NaN : t
Sourceval isNaN : t -> bool
Sourceval isFinite : t -> bool
Sourceval isInteger : t -> bool

Returns true if the value is a finite number with no fractional part

Sourceval toExponential : ?digits:int -> t -> string

Formats a number in exponential notation.

Sourceval toFixed : ?digits:int -> t -> string

Formats a number with fixed-point notation.

  • raises Failure

    if digits is not in range 0-100

Sourceval toPrecision : ?digits:int -> t -> string

Formats a number with the specified number of significant digits.

Sourceval toString : ?radix:int -> t -> string

Converts a number to a string. Optionally specify a radix (2-36).

Sourceval fromString : string -> t