Answers for "unity3d round float up to next whole number"

C#
4

unity round float to nearest 10

//int
int sayi;
int = ((int)(((int)(sayi/10))*10));
//float
float sayi;
sayi = ((float)(((int)(sayi/10))*10));
Posted by: Guest on January-15-2021

Code answers related to "unity3d round float up to next whole number"

C# Answers by Framework

Browse Popular Code Answers by Language