I don’t know how much you’re interested into technical jargon, but here are two articles explaining what’s going on:
I whipped up this solution. This will round 0.5 or greater to 1, otherwise, return only the integer part (round down). You’ll need a return variable to capture the result.
*create return 0
*temp floatPoint (number modulo 1)
*temp integerPart (number - floatPoint)
*if (floatPoint >= 0.5)
*set integerPart +1
*set return integerPart
Then call it as usual:
*gosub_scene utils round 57.14
It should print
@CJW, maybe we could add this to the cslib math module or number module.