Round decimal number

Dear all,

I create an HTML report for my project, it’s about finance. When I get the value from API, it already rounded, for example, the value in data entry form is 52.85, then the value in report will be 52.9. The same with Pivot Table, we don’t have option not to round the number.

Is that any option that I can get the native value the same with the value in Data Entry form?

···

Le Hong Em
+84 126 7171 650

Hi Em,

did you check out the skipRounding=true analytics query parameter in the docs?

https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s27.html#d5e3419

skipRounding
No
Skip rounding of data values, i.e. provide full precision.
false | true

best regards,

Lars

···

On Thu, Dec 17, 2015 at 9:25 AM, Em Le Hong em.hispvietnam@gmail.com wrote:

Dear all,

I create an HTML report for my project, it’s about finance. When I get the value from API, it already rounded, for example, the value in data entry form is 52.85, then the value in report will be 52.9. The same with Pivot Table, we don’t have option not to round the number.

Le Hong Em
+84 126 7171 650

Is that any option that I can get the native value the same with the value in Data Entry form?


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

http://www.dhis2.org

It works now, thank you

···

On Thu, Dec 17, 2015 at 3:56 PM, Lars Helge Øverland larshelge@gmail.com wrote:

Hi Em,

did you check out the skipRounding=true analytics query parameter in the docs?

https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s27.html#d5e3419

skipRounding
No
Skip rounding of data values, i.e. provide full precision.
false | true

best regards,

Lars

On Thu, Dec 17, 2015 at 9:25 AM, Em Le Hong em.hispvietnam@gmail.com wrote:

Dear all,

I create an HTML report for my project, it’s about finance. When I get the value from API, it already rounded, for example, the value in data entry form is 52.85, then the value in report will be 52.9. The same with Pivot Table, we don’t have option not to round the number.

Le Hong Em
+84 126 7171 650

Is that any option that I can get the native value the same with the value in Data Entry form?


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

http://www.dhis2.org

Le Hong Em
+84 126 7171 650