nRF51 SDK: sfloat_t Struct Reference

| nRF51 SDK

- Home
- Related Pages
- API Reference
- Data Structures

- Data Structures
- Data Structure Index
- Data Fields

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Fields
sfloat_t Struct Reference
Glucose Service

SFLOAT format (IEEE-11073 16-bit FLOAT, meaning 4 bits for exponent (base 10) and 12 bits mantissa) More...

`#include <ble_gls.h>`

## Data Fields

int8_t | exponent
int16_t | mantissa

## Detailed Description

SFLOAT format (IEEE-11073 16-bit FLOAT, meaning 4 bits for exponent (base 10) and 12 bits mantissa)

## Field Documentation

int8_t sfloat_t::exponent

Base 10 exponent, should be using only 4 bits

int16_t sfloat_t::mantissa

Mantissa, should be using only 12 bits