![]() |
NDEVR
API Documentation
|
Logic for writing to a number. More...
Public Types | |
| enum | flt_to_string { DTOSTR_NORMAL , DTOSTR_FIXED , DTOSTR_PRECISION , DTOSTR_EXPONENTIAL } |
| Specifies the formatting mode for floating-point to string conversion. More... | |
Static Public Member Functions | |
| static void | writeFloat (String &string, fltp08 value, flt_to_string mode=DTOSTR_NORMAL, uint01 precision=10) |
| Writes a double-precision floating-point value as a string representation. | |
| template<class t_type> | |
| static constexpr void | writeHex (String &string, t_type initial_value) |
| Writes an integer value as its hexadecimal string representation into the given string. | |
| template<class t_type> | |
| static constexpr void | writeInt (String &string, t_type initial_value) |
| Writes an integer value as its decimal string representation into the given string. | |
Specifies the formatting mode for floating-point to string conversion.
Definition at line 315 of file NumberWriter.h.
|
inlinestatic |
Writes a double-precision floating-point value as a string representation.
| [in] | string | The string to append the float representation to. |
| [in] | value | The double value to convert. |
| [in] | mode | The formatting mode controlling output style. |
| [in] | precision | The number of digits of precision to use. |
Internal format type used to select the digit generation strategy.
< Standard decimal notation.
< Scientific notation with exponent.
< Fractional form (0.xxxx).
< Fixed fractional form with specified decimal places.
Definition at line 415 of file NumberWriter.h.
|
inlinestaticconstexpr |
Writes an integer value as its hexadecimal string representation into the given string.
| [in] | string | The string to append the hexadecimal representation to. |
| [in] | initial_value | The integer value to convert. |
Definition at line 367 of file NumberWriter.h.
|
inlinestaticconstexpr |
Writes an integer value as its decimal string representation into the given string.
| [in] | string | The string to append the integer representation to. |
| [in] | initial_value | The integer value to convert. |
Definition at line 328 of file NumberWriter.h.