The entered values Odo_stop and Odo_start is decimal values.
To display the value I have this line at the end of the form:
note Trip_detail Your trip to
${Destination} was ${Tripdistance} km.
The form validate correctly, upload and work as expected in Enketo forms
but not in the ODK app.
.
I expect this output to display to the user.
Your trip to XYZ was 354.65 km
It shows
Your trip to XYZ was 354.6549456372911677
How can I fix this? I've tried the round() with or without extra brackets.
What's more, only two decimal places were used as input to Odo_stop and
Odo_start.
There's currently no easy solution without someone writing code (e.g.,
an improved substring to truncate?). Perhaps you can make this
contribution to the Javarosa library that powers ODK?
Yaw
ยทยทยท
--
Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.
The entered values Odo_stop and Odo_start is decimal values.
To display the value I have this line at the end of the form:
note Trip_detail Your trip to
${Destination} was ${Tripdistance} km.
The form validate correctly, upload and work as expected in Enketo forms but
not in the ODK app.
.
I expect this output to display to the user.
Your trip to XYZ was 354.65 km
It shows
Your trip to XYZ was 354.6549456372911677
How can I fix this? I've tried the round() with or without extra brackets.
What's more, only two decimal places were used as input to Odo_stop and
Odo_start.