Browse Source

Merge pull request #89 from Defragster/master

Fix for dtostrf on floats under zero
main
Paul Stoffregen 9 years ago
parent
commit
0a94f680eb
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      teensy3/nonstd.c

+ 9
- 0
teensy3/nonstd.c View File

*p++ = '0'; *p++ = '0';
*p++ = '.'; *p++ = '.';
} }
else if (decpt < 0 && precision > 0) {
*p++ = '0';
*p++ = '.';
e++;
while ( decpt < 0 ) {
decpt++;
*p++ = '0';
}
}
while (p < e) { while (p < e) {
*p++ = *s++; *p++ = *s++;
if (p == e) break; if (p == e) break;

Loading…
Cancel
Save