Luna/libluna/include/luna/Units.h
apio 5911b052dc
All checks were successful
continuous-integration/drone/push Build is passing
libluna: Add more options to to_dynamic_unit()
Also, make the output look more like how it is on linux.
2023-05-13 12:01:09 +02:00

13 lines
303 B
C

#pragma once
#include <luna/Result.h>
#include <luna/String.h>
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);