BimCT SDK / WebGL2 Viewer
    Preparing search index...

    Function formatDegrees

    • Formats a number as degrees.

      Parameters

      • num: number

        The number to format as degrees.

      Returns string

      • The formatted degrees string, with a "°" symbol.
      • formatDegrees(45.67) returns "46°" (rounded to the nearest whole number).
      • formatDegrees(NaN) returns "0°" (handles invalid input gracefully).