summaryrefslogtreecommitdiff
path: root/AK/NumberFormat.cpp
AgeCommit message (Collapse)Author
2023-04-11AK: Allow human_readable_size_long to use a thousands separatorTim Ledbetter
2023-01-02AK: Add an option to format numbers with 1000 based unitsArda Cinar
Instead of only allowing 1024-based units.
2023-01-02AK: Make sure no overflow occurs in number_string_with_one_decimalArda Cinar
A possible integer overflow might have occured inside the function in case (number % unit) * 10 did not fit into a u64. So it is verified that this does not happen at the beginning of the function.
2023-01-02AK: Add a human_readable_quantity helper to NumberFormat.hArda Cinar
This can be used for displaying large quantities that are not measured in bytes in a more human-readable format.
2023-01-02AK: Move the functions in NumberFormat.h out of lineArda Cinar