How to round to the tenths place
I need to round to the tenths place. For instance I need 18.4678 to round to 18.5. How is this possible? I know there is a built in function for the hundredths place, but I don't know about the tenths place.
I need to round to the tenths place. For instance I need 18.4678 to round to 18.5. How is this possible? I know there is a built in function for the hundredths place, but I don't know about the tenths place.
Comments
roundTo (Function): Round a real number to a specific decimal digit. Unlike the precision function, the return value is still a number, not text. To pad the decimal with 0's for display purposes, use the precision function instead.
Examples:
roundTo(0.12345, 3) = 0.123;
roundTo(2.5, 0) = 3;
roundTo(4, 2) = 4;
... From the definitions page in the cookbook.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
@jamie_c I appreciate the help. It worked!
www.mbstudios.co | Free Stuff
Sweet!
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page