unity round up code example
Example 1: unity round
Mathf.Round(10.2f);
Example 2: unity round int
//int
int sayi = 0;
sayi = ((int)(((int)(sayi / 10)) * 10));
//float
float sayi;
sayi = ((float)(((int)(sayi/10))*10));
Mathf.Round(10.2f);
//int
int sayi = 0;
sayi = ((int)(((int)(sayi / 10)) * 10));
//float
float sayi;
sayi = ((float)(((int)(sayi/10))*10));