marcandrysco / Errol

Binary floating-point to decimal string conversion algorithm.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong result for DBL_MAX

Remotion opened this issue · comments

commented

errol3_dtoa(1.7976931348623157e+308, buf); //output 0.0e309

I fixed the edge cases of DBL_MAX in both Errol1 and Errol3. I added test cases for DBL_MAX and DBL_MIN.