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
5namespace 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.
10void FormatSimpleSiValue(float val, const char* base_unit, char* out,
11 int maxlen);
12
13} // namespace roo_quantity
For convenience conversion from roo_time::Duration.
Definition area.cpp:3
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