numeric

numeric(x)

Convert a numeric input to a specific numeric type: number, BigNumber, or Fraction.

Try it yourself:

See also:
All functions