GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Formats a byte count in gigabytes, always — unlike formatFileSize, the unit is fixed.

      Parameters

      • bytes: number | null | undefined

        Byte count; null or undefined yields a zero-valued string.

      • precision: number = 2

        Decimal places. Defaults to 2.

      Returns string

      The formatted value, unit included.