diff --git a/clibrary.c b/clibrary.c index 312cff4..bc0230d 100644 --- a/clibrary.c +++ b/clibrary.c @@ -106,7 +106,7 @@ void PrintFP(double Num, struct OutputStream *Stream) Num /= pow(10.0, Exponent); PrintInt((int)Num, Stream); PrintCh('.', Stream); - for (Num = (Num - (int)Num) * 10; abs(Num) >= 1e-7; Num = (Num - (int)Num + 1e-7) * 10) + for (Num = (Num - (int)Num) * 10; abs(Num) >= 1e-7; Num = (Num - (int)(Num + 1e-7)) * 10) PrintCh('0' + (int)(Num + 1e-7), Stream); if (Exponent != 0)