num2str: fix precision loss bug when the fractional part is close to 1
authorgloit042 <gloit042@gmail.com>
Sun, 20 Dec 2020 16:35:21 +0000 (00:35 +0800)
committergloit042 <gloit042@gmail.com>
Mon, 21 Dec 2020 02:14:38 +0000 (10:14 +0800)
commitc736b361190e1133b4d407a6c7615bf8c4d9c262
tree8151001e70d019d60d0405aa4b8b6a3851b4be52
parentced224611b039df68ceebde4733269f4f6606912
num2str: fix precision loss bug when the fractional part is close to 1

example:
The result of num2str(11999999999999, 4, 1, 0, N2S_NONE) should
be "12.0G", but current result is "11.0G".

Signed-off-by: Jiahao Li <gloit042@gmail.com>
lib/num2str.c