Answers for "check if double is integer c++"

C++
1

check if double is integer c++

double ans; 
if(floor(ans) == ceil(ans))
Posted by: Guest on September-28-2021
2

double to int c++

double x = 5.4;
int y = (int) x;
Posted by: Guest on June-10-2020

Code answers related to "check if double is integer c++"

Browse Popular Code Answers by Language