DevO2012 / stringencoders

Automatically exported from code.google.com/p/stringencoders
Other
1 stars 0 forks source link

dtoa & dtoa2 lose a fractional leading '0' #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Call: "modp_dtoa2(1.03, str, 2);"
2.  Call: "modp_dtoa2(1.003, str, 2);"

What is the expected output? 
1. "1.03" 
2. "1.003"

What do you see instead?
1. "1.3"
2. "1.03"

What version of the product are you using? On what operating system?
r445

Please provide any additional information below.
Ln# 287 should be >= not >

Original issue reported on code.google.com by toby.m...@gmail.com on 23 Jul 2014 at 12:18

GoogleCodeExporter commented 9 years ago
BTW: This on win 7, gcc.

Original comment by toby.m...@gmail.com on 23 Jul 2014 at 12:33

GoogleCodeExporter commented 9 years ago
Since tried this on a different system without issue, so may actually have just 
been some kink in my setup, apologies!

Original comment by toby.m...@gmail.com on 30 Jul 2014 at 9:46