Decimal calculations in Survey123

2485
4
07-28-2016 06:37 AM
GeneSipes1
New Contributor III

I am trying to use a calculate expression in survey 123 for decimal field types. I have had success calculating integer field types with expression: int(${field_name)*int(${field_name2}). Does anyone know how to express this same calculation using decimals instead? Thanks

0 Kudos
4 Replies
DanPatterson_Retired
MVP Emeritus

float

at least in most languages

0 Kudos
AngelaBozeman
New Contributor III

Did you find a solution?

0 Kudos
deleted-user-PF38P_WNl02r
New Contributor II

This is one way I have found to do it:

and it looks like this in the survey:

0 Kudos
AngelaBozeman
New Contributor III

I found the solution I was looking for. You can convert a text field to a number that is a decimal by putting number() in front. Thank you though.

i.e.: number(${decimal_1})

0 Kudos