Thanks Brianfry, Got AC, Learned something new !!brianfry713 wrote:You are losing precision converting a double to and from a string.
Try input:AC output:Code: Select all
1 ( ( 1000000.01 / 1000000.00 ) * 1000000.0 )
I solved it using a recursive descent parser where all intermediate values are kept as a double.Code: Select all
1000000.01
