Soldered SD Card Arduino Library 1.0.0
Easily read and write files to and form the SD card breakout! A fork of the original SDFat library by Bill Greiman.
Loading...
Searching...
No Matches
FmtNumber.h File Reference

Go to the source code of this file.

Functions

bool isDigit (char c)
 
bool isSpace (char c)
 
char * fmtBase10 (char *str, uint16_t n)
 
char * fmtBase10 (char *str, uint32_t n)
 
char * fmtDouble (char *str, double d, uint8_t prec, bool altFmt)
 
char * fmtDouble (char *str, double d, uint8_t prec, bool altFmt, char expChar)
 
char * fmtHex (char *str, uint32_t n)
 
char * fmtSigned (char *str, int32_t n, uint8_t base, bool caps)
 
char * fmtUnsigned (char *str, uint32_t n, uint8_t base, bool caps)
 

Function Documentation

◆ fmtBase10() [1/2]

char * fmtBase10 ( char *  str,
uint16_t  n 
)

◆ fmtBase10() [2/2]

char * fmtBase10 ( char *  str,
uint32_t  n 
)

◆ fmtDouble() [1/2]

char * fmtDouble ( char *  str,
double  d,
uint8_t  prec,
bool  altFmt 
)

◆ fmtDouble() [2/2]

char * fmtDouble ( char *  str,
double  value,
uint8_t  prec,
bool  altFmt,
char  expChar 
)

Print a number followed by a field terminator.

Parameters
[in]valueThe number to be printed.
[in]ptrPointer to last char in buffer.
[in]precNumber of digits after decimal point.
[in]expCharUse exp format if non zero.
Returns
Pointer to first character of result.

◆ fmtHex()

char * fmtHex ( char *  str,
uint32_t  n 
)

◆ fmtSigned()

char * fmtSigned ( char *  str,
int32_t  n,
uint8_t  base,
bool  caps 
)

◆ fmtUnsigned()

char * fmtUnsigned ( char *  str,
uint32_t  n,
uint8_t  base,
bool  caps 
)

◆ isDigit()

bool isDigit ( char  c)
inline

◆ isSpace()

bool isSpace ( char  c)
inline