Select to view content in your preferred language

Round Down Arcade

541
2
08-03-2023 11:35 PM
yukler
by
New Contributor

Hi all, I'm looking for a way to round down in Arcade. I have used the round function which does simple rounding up or down and I've tried making the field integer type, which still rounds up or down. I'm doing field calculator and attribute rule work and am looking to round values down https://speedtest.vet/ . Thanks so much for the help!

0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

in python if you can use the field calculator

import math

math.trunc(2.77)
2

the math module is available by default in the field calculator so you shouldn't have to use the import statement


... sort of retired...
0 Kudos
JohannesLindner
MVP Frequent Contributor

You can use Floor() for that. The opposite (always round up) is Ceil().


Have a great day!
Johannes