Round a Number Up

guclusat

Tanınmış Üye
Süper Moderatör
Round a Number Up
AutoPlay Media Studio includes a built in action to round any number up to the next whole number. To accomplish this, use the Math.Ceil action:

Kod:
your_number = 3.1415;
your_rounded_number = Math.Ceil(your_number);
Note: This script will set the variable your_rounded_number to 4.
 
Yukarı