Function toRadians

  • Turn given number (degrees) into radians

    Parameters

    • input: number

    Returns number

    Example

    import { number } from "@rjweb/utils"

    number.toRadians(180) // 3.141592653589793
    number.toRadians(90) // 1.5707963267948966

    Since

    1.12.27

    Supports

    nodejs, browser