Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
sham::human_readable_t Struct Reference

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

Detailed Description

Struct holding a scaled value with its SI prefix.

Parameters
valuethe scaled numeric value (e.g. 1.5 for "1.5 k")
prefixthe SI prefix character (e.g. "k", "M", "")
ratiothe ratio used to scale the original value

Definition at line 72 of file human_readable.hpp.

Member Data Documentation

◆ prefix

const char* sham::human_readable_t::prefix

Definition at line 74 of file human_readable.hpp.

◆ ratio

double sham::human_readable_t::ratio

Definition at line 75 of file human_readable.hpp.

◆ value

double sham::human_readable_t::value

Definition at line 73 of file human_readable.hpp.


The documentation for this struct was generated from the following file: