다음을 통해 공유


Srch.U.toFileSizeDisplay Method (DisplayTemplatesSrch)

Converts the file size to either Kilobytes (KB), Megabytes (MB), or Gigabytes (GB).

Srch.U.toFileSizeDisplay(numberOfBytes, showDecimalPart)

Return value

A formatted string.

Parameters

  • numberOfBytes
    The number of bytes to convert.

  • showDecimalPart
    Indicates whether the decimal part of the file size should be shown.