dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #35190
Re: Rounding of numbers in tracker
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 <abyota@xxxxxxxxx> 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 <
> jason.p.pickering@xxxxxxxxx> 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: jason.p.pickering@xxxxxxxxx
>> tel:+46764147049
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help : https://help.launchpad.net/ListHelp
>>
>>
>
--
Jason P. Pickering
email: jason.p.pickering@xxxxxxxxx
tel:+46764147049
Follow ups
References