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
Go to the documentation of this file.
1
25#ifndef FmtNumber_h
26#define FmtNumber_h
27#include <math.h>
28#include <stddef.h>
29#include <stdint.h>
30inline bool isDigit(char c)
31{
32 return '0' <= (c) && (c) <= '9';
33}
34inline bool isSpace(char c)
35{
36 return (c) == ' ' || (0X9 <= (c) && (c) <= 0XD);
37}
38char *fmtBase10(char *str, uint16_t n);
39char *fmtBase10(char *str, uint32_t n);
40char *fmtDouble(char *str, double d, uint8_t prec, bool altFmt);
41char *fmtDouble(char *str, double d, uint8_t prec, bool altFmt, char expChar);
42char *fmtHex(char *str, uint32_t n);
43char *fmtSigned(char *str, int32_t n, uint8_t base, bool caps);
44char *fmtUnsigned(char *str, uint32_t n, uint8_t base, bool caps);
45#endif // FmtNumber_h
char * fmtHex(char *str, uint32_t n)
Definition FmtNumber.cpp:217
char * fmtSigned(char *str, int32_t n, uint8_t base, bool caps)
Definition FmtNumber.cpp:228
char * fmtUnsigned(char *str, uint32_t n, uint8_t base, bool caps)
Definition FmtNumber.cpp:243
bool isDigit(char c)
Definition FmtNumber.h:30
bool isSpace(char c)
Definition FmtNumber.h:34
char * fmtBase10(char *str, uint16_t n)
Definition FmtNumber.cpp:163
char * fmtDouble(char *str, double d, uint8_t prec, bool altFmt)
Definition FmtNumber.cpp:262