byteFormat

Convert byte to symbolic size like 2.98 MB

You could set `precision` to configure decimals after number(2 for 2.98 and 3 for 2.987 and ...)

Arguments
Name Type Description Required
byte int size in byte yes
precision int decimal precision no
space_between bool if you want space between number and symbol no

Output : string

Static or normal : Static

Examples :

tools::byteFormat(123456789);