Folks,
I have stored fixed precision numbers in a database, but when they are spit out by
a view, the precision is full, and -which is worse- the trailing decimal digits
are not all zeroes.
In other words:
Data in the database (as I loaded them as they do appear in Futon):
{
"_id": "4864f365b6962af5a9c4064b34001722",
"_rev": "1-73d234f7ed07b0fc9d4671a9f8ef9b91",
"type": "Feature",
"properties": {
"poll_id": 2734,
"dataset": "pbc",
"ced": null
},
"bbox": [
151.17281,
-33.91018,
151.18159,
-33.90162
]
...
Output of the view:
{
"_id": "4864f365b6962af5a9c4064b34001722",
"_rev": "1-73d234f7ed07b0fc9d4671a9f8ef9b91",
"type": "Feature",
"properties": {
"poll_id": 2734,
"dataset": "pbc",
"ced":null
},
"bbox": [
151.17280999999999835,
-33.91017999999999688,
151.18158999999999992,
-33.901620000000001198
]
...
Of course, in the view I do not alter the doc (moreover, the same output of the
view is replicated when I directly request a document via the Document API).
Am I doing something silly ?
Regards,
Luca Morandini
Data Architect - AURIN project
Department of Computing and Information Systems
University of Melbourne
Tel. +61 03 903 58 380
Skype: lmorandini