diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/object/outputstream.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/object/outputstream.cc b/src/object/outputstream.cc index 3960a3e..b7c1bf4 100644 --- a/src/object/outputstream.cc +++ b/src/object/outputstream.cc @@ -182,6 +182,12 @@ void OutputStream::printf_float(float num) put('-'); num *= -1; } + if (num > 100000) { + put('0' + (((unsigned int)num % 1000000) / 100000)); + } + if (num > 10000) { + put('0' + (((unsigned int)num % 100000) / 10000)); + } if (num > 1000) { put('0' + (((unsigned int)num % 10000) / 1000)); } |