You can post your code snippets here for others to use and learn from
Post Reply
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am


Post by djrikki » Wed Apr 15, 2015 10:51 pm

Code: Select all

Global base
base = {}

;; base:RoundTo(value, DecimalPlaces)
; Round a float to a number of decimal places
Function base:RoundTo(value, DecimalPlaces) Return(Round(value*10^DecimalPlaces)/10^DecimalPlaces) EndFunction 
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI

Post Reply