Module zut.numeric

Parse and convert numbers.

Functions

get_number_str(value, *[, max_decimals, ...])

Display the number as a digits string without using scientifical notation, with integer part, decimal separator and decimal part (if any).

human_bytes(-> str)

Get a human-readable representation of a number of bytes.

human_number(-> str)

Get a human-readable representation of a number.

parse_bool(-> bool)

parse_decimal(-> ~decimal.Decimal)

Parse a decimal literal.

parse_float(-> float)

parse_int(-> int)

Classes

GoogleMoney(*args, **kwargs)

Represents an amount of money with its currency type, as defined by Google.