Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity round float to nearest 10


//int
int sayi;
int = ((int)(((int)(sayi/10))*10));
//float
float sayi;
sayi = ((float)(((int)(sayi/10))*10));
 
PREVIOUS NEXT
Tagged: #unity #float #nearest
ADD COMMENT
Topic
Name
3+6 =