https://forum.pjrc.com/threads/31233-float-and-double?p=86860&viewfull=1#post86860teensy4-core
// Print the decimal point, but only if there are digits beyond | // Print the decimal point, but only if there are digits beyond | ||||
if (digits > 0) { | if (digits > 0) { | ||||
uint8_t n, buf[8], count=1; | |||||
uint8_t n, buf[16], count=1; | |||||
buf[0] = '.'; | buf[0] = '.'; | ||||
// Extract digits from the remainder one at a time | // Extract digits from the remainder one at a time |