Function toDegrees

  • Turn given number (radians) into degrees

    Parameters

    • input: number

    Returns number

    Example

    import { number } from "@rjweb/utils"

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

    Since

    1.12.27

    Supports

    nodejs, browser