38 if (
write(*buffer++)) n++;
46 PGM_P
p =
reinterpret_cast<PGM_P
>(ifsh);
49 unsigned char c = pgm_read_byte(p++);
59 return write(s.c_str(), s.length());
74 return print((
unsigned long) b, base);
79 return print((
long) n, base);
84 return print((
unsigned long) n, base);
91 }
else if (base == 10) {
105 if (base == 0)
return write(n);
128 return write(
"\r\n");
154 size_t n =
print(b, base);
161 size_t n =
print(num, base);
168 size_t n =
print(num, base);
175 size_t n =
print(num, base);
182 size_t n =
print(num, base);
189 size_t n =
print(num, digits);
205 char buf[8 *
sizeof(long) + 1];
206 char *str = &buf[
sizeof(buf) - 1];
211 if (base < 2) base = 10;
217 *--str = c < 10 ? c +
'0' : c +
'A' - 10;
227 if (isnan(number))
return print(
"nan");
228 if (isinf(number))
return print(
"inf");
229 if (number > 4294967040.0)
return print (
"ovf");
230 if (number <-4294967040.0)
return print (
"ovf");
240 double rounding = 0.5;
241 for (uint8_t i=0; i<digits; ++i)
247 unsigned long int_part = (
unsigned long)number;
248 double remainder = number - (double)int_part;
249 n +=
print(int_part);
260 unsigned int toPrint = (
unsigned int)(remainder);
262 remainder -= toPrint;
virtual size_t printTo(Print &p) const =0
size_t printNumber(unsigned long, uint8_t)
virtual size_t write(uint8_t)=0
size_t print(const __FlashStringHelper *)
GLint GLint GLint GLint GLint x
typedef int(WINAPI *PFNWGLRELEASEPBUFFERDCARBPROC)(HPBUFFERARB hPbuffer
size_t printFloat(double, uint8_t)
INT64 INT64 INT64 remainder
GLdouble GLdouble GLdouble b