Skip to main content

Rounding Decimals with Rumba script.

  • October 23, 2015
  • 2 replies
  • 0 views

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

2 replies

André Escudero

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.