Yes kind of confusing ... that is why I ended up with the bug. Since I was getting int through the web-api, I simply used parseInt ... hence the rounding.
--- Thank you, Abyot. On Tue, Jan 20, 2015 at 1:58 PM, Jason Pickering < [email protected]> wrote: > Hi Abyot, > Thanks for the quick fix. > > It is a bit confusing from the API I must admit. In the UI, these data > elements are defined as "Value type" = Number and Number type = "Number", > but in the API JSON response, it comes out as "int" for the "type". > > It might be work considering to change the Number type to "Real" instead > of "Number". It is fairly obvious it is a number. :) > > Regards, > Jason > > > On Tue, Jan 20, 2015 at 12:47 PM, Abyot Gizaw <[email protected]> wrote: > >> Hi Jason, >> >> Yes, they were converted to Integer. This is fixed now in trunk. >> >> --- >> Thank you, >> Abyot. >> >> On Tue, Jan 20, 2015 at 12:03 PM, Jason Pickering < >> [email protected]> wrote: >> >>> Hi Devs, >>> We have some data values which are numerically precise to two decimal >>> places. In the trackedentitydatavalue table, the numbers are correct as >>> they should be, but in the UI, they appear to be truncated or possibly >>> rounded to the nearest integer. Could someone confirm this is the case? If >>> so, I think it is a bug, as the data elements have been defined to be >>> numeric, and not integers. >>> >>> Best regards, >>> Jason >>> >>> >>> -- >>> Jason P. Pickering >>> email: [email protected] >>> tel:+46764147049 >>> >>> _______________________________________________ >>> Mailing list: https://launchpad.net/~dhis2-devs >>> Post to : [email protected] >>> Unsubscribe : https://launchpad.net/~dhis2-devs >>> More help : https://help.launchpad.net/ListHelp >>> >>> >> > > > -- > Jason P. Pickering > email: [email protected] > tel:+46764147049 >
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : [email protected] Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp

