Skip to main content

Is it possible to round decimals and numbers with Rumba Script?

12.123 to 12.1 or 15.55 to 15.6


#Script
#RUMBASCRIPTTIMEOUT
#Rumba
#scriptEditor

Is it possible to round decimals and numbers with Rumba Script?

12.123 to 12.1 or 15.55 to 15.6


#Script
#RUMBASCRIPTTIMEOUT
#Rumba
#scriptEditor

You can use round

Sub Main

x = 12.123

y = 15.55

        msgbox round(x,1)

        msgbox round(y,1)

End Sub

 

 

/A


Is it possible to round decimals and numbers with Rumba Script?

12.123 to 12.1 or 15.55 to 15.6


#Script
#RUMBASCRIPTTIMEOUT
#Rumba
#scriptEditor

I should have try, but since it was not in the assistance I did not try.