Calculating using decimals

928
4
Jump to solution
02-20-2017 05:06 PM
JohnPlunkett
Esri Contributor

Hi there

Working with a customer we sometimes need to do a calculation for example

pow((${BasalDiameter} *50),.42)*.66  

However this fails when we view in Survey123 Connect

- Changing the calculation so that there is a leading Zero it works as expected. - Is this a known issue?

pow((${BasalDiameter} *50),.042)*0.66  

Edit- using Survey123 Connect 1.10.43 Windows 10

0 Kudos
1 Solution

Accepted Solutions
JohnPlunkett
Esri Contributor

Hi Dan

Thanks for your response - unfortunately using spaces doesn't work - it appears that you need to have preceding 0's to make it work

View solution in original post

0 Kudos
4 Replies
DanPatterson_Retired
MVP Emeritus

what about spaces... pow((${BasalDiameter} * 50), .42) * .66  

I would use preceding 0's and spaces around operands in any case

JohnPlunkett
Esri Contributor

Hi Dan

Thanks for your response - unfortunately using spaces doesn't work - it appears that you need to have preceding 0's to make it work

0 Kudos
DanPatterson_Retired
MVP Emeritus

some 'languages' are more fussy than others I suspect

MitchellProctor
Occasional Contributor II

Hi John,

I see you've already figured this out, but yes, leading zeroes are needed to make decimal calculations work, and this is expected behavior.