AceCommon  1.6.0
Arduino library for low-level common functions and features with no external dependencies
Functions
printIntAsFloat.h File Reference

Print integers as floating point numbers, without using floatin point operations which are expensive on 8-bit processors. More...

#include <stdint.h>
#include <Print.h>
#include "printPadTo.h"
Include dependency graph for printIntAsFloat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void ace_common::printUint16AsFloat3To (Print &printer, uint16_t value)
 Print a uint16 (e.g. More...
 
void ace_common::printUint32AsFloat3To (Print &printer, uint32_t value)
 Print a uint32 (e.g. More...
 

Detailed Description

Print integers as floating point numbers, without using floatin point operations which are expensive on 8-bit processors.

Definition in file printIntAsFloat.h.

Function Documentation

◆ printUint16AsFloat3To()

void ace_common::printUint16AsFloat3To ( Print &  printer,
uint16_t  value 
)
inline

Print a uint16 (e.g.

12345U) as a float after dividing by 1000 (i.e. "12.345").

Definition at line 33 of file printIntAsFloat.h.

◆ printUint32AsFloat3To()

void ace_common::printUint32AsFloat3To ( Print &  printer,
uint32_t  value 
)
inline

Print a uint32 (e.g.

123456UL) as a float after dividing by 1000 (i.e. "123.456").

Definition at line 45 of file printIntAsFloat.h.