Round a Number Down

guclusat

Tanınmış Üye
Süper Moderatör
Round a Number Down
AutoPlay Media Studio includes a built in action to round any number down to the next whole number. To accomplish this, use the Math.Floor action:
Kod:
your_number = 3.1415;
your_rounded_number = Math.Floor(your_number);

Note: This script will set the variable your_rounded_number to 3.
 
Geri
Yukarı