2022-11-30 11:42:11 +00:00
|
|
|
#pragma once
|
2022-12-04 11:42:43 +00:00
|
|
|
#include <luna/Result.h>
|
2023-03-29 15:28:22 +00:00
|
|
|
#include <luna/String.h>
|
2022-11-30 11:42:11 +00:00
|
|
|
|
2023-05-13 10:01:09 +00:00
|
|
|
enum class Unit : usize
|
|
|
|
{
|
|
|
|
SI = 1000,
|
|
|
|
Binary = 1024
|
|
|
|
};
|
|
|
|
|
|
|
|
Result<String> to_dynamic_unit(usize value, usize round_after = 1000, bool separate = true, Unit unit = Unit::Binary,
|
|
|
|
bool display_unit = true);
|