Data Fields

decfloat Struct Reference

this is a very crude decimal-based floating point structure. More...

#include <gcode_parse.h>

Data Fields

uint32_t mantissa
 the actual digits of our floating point number
uint8_t exponent:7
 scale mantissa by $10^{-exponent}$
uint8_t sign:1
 positive or negative?

Detailed Description

this is a very crude decimal-based floating point structure.

a real floating point would at least have signed exponent.
resulting value is $ mantissa * 10^{-(exponent - 1)} * ((sign * 2) - 1)$


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Defines