roo_quantity
API Documentation for roo_quantity
Loading...
Searching...
No Matches
si.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <cmath>
4
5
namespace
roo_quantity
{
6
7
/// Formats a value with an SI prefix and base unit.
8
///
9
/// Writes a null-terminated string into `out` with at most `maxlen` bytes.
10
void
FormatSimpleSiValue
(
float
val,
const
char
* base_unit,
char
* out,
11
int
maxlen);
12
13
}
// namespace roo_quantity
roo_quantity
For convenience conversion from roo_time::Duration.
Definition
area.cpp:3
roo_quantity::FormatSimpleSiValue
void FormatSimpleSiValue(float val, const char *base_unit, char *out, int maxlen)
Formats a value with an SI prefix and base unit.
Definition
si.cpp:8
temp_repos
roo_quantity
src
roo_quantity
si.h
Generated by
1.9.8