Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

cpp float to int

float a = 5.0;
int b = static_cast<int>(a);
 
PREVIOUS NEXT
Tagged: #cpp #float #int
ADD COMMENT
Topic
Name
5+6 =