apio
5911b052dc
All checks were successful
continuous-integration/drone/push Build is passing
Also, make the output look more like how it is on linux.
13 lines
303 B
C
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);
|