br1ghtyang / asterixdb

Automatically exported from code.google.com/p/asterixdb
0 stars 0 forks source link

AsterixDB floating point accuracy seems iffy #474

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Query:
let $li := [ 42, "forty-two", "AsterixDB!", 3.14f ][3]
return $li * 1.0

What is the expected output? What do you see instead?

Answer:
3.140000104904175d
Expected:
3.140000000000000d

This is a question for documentation, probably: Is this expected? (I.e., is 
this the answer to WWJD, where J=Java?)

Original issue reported on code.google.com by dtab...@gmail.com on 26 May 2013 at 4:45