• Round a Number

    Parameters

    • input: number
    • decimals: number

    Returns number

    Example

    import { number } from "@rjweb/utils"

    number.round(10.32659395235, 2) // 10.33

    Since

    1.3.0

    Supports

    nodejs, browser