![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Struct holding a scaled value with its SI prefix. More...
#include <shamformat/include/sham/format/human_readable.hpp>
Public Attributes | |
| double | value |
| const char * | prefix |
| double | ratio |
Struct holding a scaled value with its SI prefix.
| value | the scaled numeric value (e.g. 1.5 for "1.5 k") |
| prefix | the SI prefix character (e.g. "k", "M", "") |
| ratio | the ratio used to scale the original value |
Definition at line 72 of file human_readable.hpp.
| const char* sham::human_readable_t::prefix |
Definition at line 74 of file human_readable.hpp.
| double sham::human_readable_t::ratio |
Definition at line 75 of file human_readable.hpp.
| double sham::human_readable_t::value |
Definition at line 73 of file human_readable.hpp.