![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Convert raw numeric values to human-readable SI-formatted pairs. More...
#include <array>#include <cmath>#include <utility>Go to the source code of this file.
Classes | |
| struct | sham::human_readable_t |
| Struct holding a scaled value with its SI prefix. More... | |
Namespaces | |
| namespace | sham |
| namespace for backends this one is named only sham since shambackends is too long to write | |
Functions | |
| template<bool allow_below_1> | |
| consteval auto | sham::details::make_si_pairs () |
| Generate a compile-time table of SI prefixes and their magnitudes. | |
| template<bool allow_below_1 = true> | |
| human_readable_t | sham::to_human_readable (double value) |
| Convert a raw value to a human-readable scaled form with an SI prefix. | |
Convert raw numeric values to human-readable SI-formatted pairs.
Definition in file human_readable.hpp.
|
consteval |
Generate a compile-time table of SI prefixes and their magnitudes.
| allow_below_1 | When true, includes sub-unity prefixes (nano through milli). When false, starts at unity (no sub-unity prefixes). |
Definition at line 34 of file human_readable.hpp.