• Get the cosine of a number (in degrees)

    Parameters

    • input: number

    Returns number

    Example

    import { number } from "@rjweb/utils"

    number.cos(0) // 1
    number.cos(90) // 0

    Since

    1.12.27

    Supports

    nodejs, browser