OS  v1.7.5
Documentation
Loading...
Searching...
No Matches
qOS::logger::pre Class Referencefinal

Class that sets the decimal precision to be used to format floating-point values on logger operations. Example: More...

#include <logger.hpp>

Public Member Functions

 pre (uint8_t p)
 Instantiates a precision specifier of p decimal points.
 

Detailed Description

Class that sets the decimal precision to be used to format floating-point values on logger operations. Example:

float myNumber = 3.5787154;
logger::out() << logger::pre( 5 ) << myNumber << logger::endl;
Class that sets the decimal precision to be used to format floating-point values on logger operations...
Definition logger.hpp:172

Constructor & Destructor Documentation

◆ pre()

qOS::logger::pre::pre ( uint8_t p)
inlineexplicit

Instantiates a precision specifier of p decimal points.

Parameters
[in]pNumber of decimal points for the precision