Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# round up

double resultA = Math.Ceiling(1.02); //Mathf.Ceil for Unity

int resultB = Mathf.CeilToInt(1.02); //Unity Only
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
8+6 =