CHERIoT RTOS
A compartmentalised RTOS for CHERIoT hardware
Loading...
Searching...
No Matches
anonymous_namespace{float_to_string_helpers.hh}::FloatParts Struct Reference

A floating-point value decomposed into components for printing. More...

#include <float_to_string_helpers.hh>

Public Attributes

uint32_t integral
 The integral component (before the decimal point).
uint32_t decimal
 The decimal component (after the decimal point).
int16_t exponent
 The exponent (the power of ten that this is raised to).
int8_t decimalPlaces
 The number of decimal places in the exponent.

Detailed Description

A floating-point value decomposed into components for printing.

Definition at line 146 of file float_to_string_helpers.hh.

Member Data Documentation

◆ decimal

uint32_t anonymous_namespace{float_to_string_helpers.hh}::FloatParts::decimal

The decimal component (after the decimal point).

Definition at line 151 of file float_to_string_helpers.hh.

◆ decimalPlaces

int8_t anonymous_namespace{float_to_string_helpers.hh}::FloatParts::decimalPlaces

The number of decimal places in the exponent.

The exponent is represented as a value that can be converted to a string with integer-to-string conversion. This may have leading zeroes. For example, the number 123.045 will have an integral value of 123, a decimal value of 45, an exponent of 1, and a decimalPlaces of

  1. The value 45 must therefore be printed with a leading zero.

Definition at line 162 of file float_to_string_helpers.hh.

◆ exponent

int16_t anonymous_namespace{float_to_string_helpers.hh}::FloatParts::exponent

The exponent (the power of ten that this is raised to).

Definition at line 153 of file float_to_string_helpers.hh.

◆ integral

uint32_t anonymous_namespace{float_to_string_helpers.hh}::FloatParts::integral

The integral component (before the decimal point).

Definition at line 149 of file float_to_string_helpers.hh.


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