natural_size: Convert bytes to a more natural representation

Description Usage Arguments Examples

Description

Convert bytes to a more natural representation

Usage

1
natural_size(bytes, suffix_type = "decimal", fmt = "%.1f")

Arguments

bytes

Number of bytes

suffix_type

One of 'decimal', 'binary', 'gnu'

fmt

Extra number formatting

Examples

1

newtux/humanize documentation built on May 25, 2019, 10:35 p.m.