powered by
Convert bytes to a more natural representation
natural_size(bytes, suffix_type = "decimal", fmt = "%.1f")
Number of bytes
One of 'decimal', 'binary', 'gnu'
Extra number formatting
# NOT RUN { natural_size(3000) # }
Run the code above in your browser using DataLab