Hello,
Can I round an input decimal to the nearest 0.5?
Even better, can the spinner be programmed in steps of 0.5?
I don't want to use range, as there is no maximum.
Minimum and default=0.5
Thank you!
Can't help you with the survey design, but to round to 0.5:
Multiply by 2, round to zero digits, divide by 2
var rounded_x = round(2 * x, 0) / 2
In the end I did this: (round((${input_hours} * 2), 0)) * 0.5
and got this:
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.