Byte_units.Short
type nonrec t = t
val sexp_of_t : t -> Sexplib0.Sexp.t
val to_string : t -> Base.String.t
Short.to_string
is like to_string_hum
but will attempt to only show 4 significant digits.
For example Byte_units.to_string_hum (Byte_units.of_bytes_int 1000)
gives 1000B
, but Byte_units.to_string_hum (Byte_units.of_bytes_int 1500)
gives 1.46K
.
Short.sexp_of_t
does the same.