• Apply % to a number

    Parameters

    • input: number
    • percent: number

    Returns number

    Example

    import { number } from "@rjweb/utils"

    number.percent(50, 10) // 55
    number.percent(50, -10) // 45

    Since

    1.2.0

    Supports

    nodejs, browser