Answers for "cpp float to int"

C++
2

cpp float to int

float a = 5.0;
int b = static_cast<int>(a);
Posted by: Guest on June-01-2021

Browse Popular Code Answers by Language