![]() |
Data Gator
Hardware and software documentation for the Data Gator project.
|
Defines structure for floating point numbers in dual 8 bit upper/lower format. More...
#include <KKM_K6P.hpp>
Public Member Functions | |
std::string | toString () |
Convert struct members upper and lower to a string double value. | |
Public Attributes | |
int8_t | upper = 0x00 |
the value to the left of the decimal point | |
uint8_t | lower = 0x00 |
the value to the right of the decimal point | |
Defines structure for floating point numbers in dual 8 bit upper/lower format.
Uses the toString member to convert the upper and lower 8 bit values to a string of format <upper>.<lower>
to represent a double.
For example:
|
inline |
Convert struct members upper and lower to a string double value.
<upper_int>.<lower_int>
.