Globus SDK for JavaScript
    Preparing search index...
    • Returns a readable string for the given bytes, rounded and truncated to the given number of decimal places.

      Parameters

      • bytes: number

        The number of bytes to convert to a readable string.

      • Optionaltruncate: number = 2

        The number of decimal places to truncate the result to.

      Returns string