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.
Toggle main menu visibility
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>
30
inline
bool
isDigit
(
char
c)
31
{
32
return
'0'
<= (c) && (c) <=
'9'
;
33
}
34
inline
bool
isSpace
(
char
c)
35
{
36
return
(c) ==
' '
|| (0X9 <= (c) && (c) <= 0XD);
37
}
38
char
*
fmtBase10
(
char
*str, uint16_t n);
39
char
*
fmtBase10
(
char
*str, uint32_t n);
40
char
*
fmtDouble
(
char
*str,
double
d, uint8_t prec,
bool
altFmt);
41
char
*
fmtDouble
(
char
*str,
double
d, uint8_t prec,
bool
altFmt,
char
expChar);
42
char
*
fmtHex
(
char
*str, uint32_t n);
43
char
*
fmtSigned
(
char
*str, int32_t n, uint8_t base,
bool
caps);
44
char
*
fmtUnsigned
(
char
*str, uint32_t n, uint8_t base,
bool
caps);
45
#endif
// FmtNumber_h
fmtHex
char * fmtHex(char *str, uint32_t n)
Definition
FmtNumber.cpp:217
fmtSigned
char * fmtSigned(char *str, int32_t n, uint8_t base, bool caps)
Definition
FmtNumber.cpp:228
fmtUnsigned
char * fmtUnsigned(char *str, uint32_t n, uint8_t base, bool caps)
Definition
FmtNumber.cpp:243
isDigit
bool isDigit(char c)
Definition
FmtNumber.h:30
isSpace
bool isSpace(char c)
Definition
FmtNumber.h:34
fmtBase10
char * fmtBase10(char *str, uint16_t n)
Definition
FmtNumber.cpp:163
fmtDouble
char * fmtDouble(char *str, double d, uint8_t prec, bool altFmt)
Definition
FmtNumber.cpp:262
src
common
FmtNumber.h
Generated on
for Soldered SD Card Arduino Library by
1.17.0. Dark theme by
Tilen Majerle
. All rights reserved. Copyright:
Soldered