numeric
numeric(x)
Convert a numeric input to a specific numeric type: number, BigNumber, or Fraction.
Try it yourself:
$1 | numeric("4")
| |
$2 | numeric("4", "number")
| |
$3 | numeric("4", "BigNumber")
| |
$4 | numeric("4", "Fraction")
| |
$5 | numeric(4, "Fraction")
| |
$6 | numeric(fraction(2, 5), "number")
|
See also:
All functions