Hello
@marti
I have seen players have this kind of issue, and I myself do the simplest thing. First, we are unable to get rid of the .0 by rounding, as all that does is run a check to see what should be incremented, so what we have to do is set a DISPLAY value, or front end, which replaces the .0 in text, because number variables can't be text, it would have to be *-display, and use that in messages
YAML:
function simplify(v: variable):
set {_Simplifyvar} to v
set {array-simplifyvar::*} to {_Simplifyvar} split at "v"
set {simpvalue} to {array-simplifyvar::1}
This code above is having us get the first element of the array we converted the number into, and since simpvalue is a different variable, we can use that in text.
This is the basic idea of decimal removal