Pure number formatting, no SDK behind it. More...
#include <stddef.h>Go to the source code of this file.
Functions | |
| void | number_group (char *buffer, size_t size, int value) |
| Format an integer with apostrophe thousands separators (e.g. 20358 -> "20'358"). | |
| void | fmt_int_or_dash (char *buffer, size_t size, int value, const char *fmt) |
| Format an integer, or "--" when there is no reading yet. | |
| void | fmt_hundredths (char *buffer, size_t size, int value) |
| Format hundredths as a two-decimal number, e.g. 26174 -> "261.74". | |
| void | fmt_pct_signed (char *buffer, size_t size, int value) |
| Format hundredths as a signed two-decimal percent, e.g. 125 -> "+1.25%". | |
Pure number formatting, no SDK behind it.