Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
C++
check if float has decimals c++
winston
Programming language:
C++
2021-04-10 08:13:36
3
Q:
check if float has decimals c++
Venkataragavan
Code:
C++
2021-03-24 04:51:16
if (some_float == (int)some_float) { // decimal part == 0.0 i.e. no fractional part }
0
Tags
check
Related
round double to 2 decimal places c++
how to print 5 precision float in c++
how print fload wiht 3 decimal in c++
convert binary to decimal c++ stl
how to print a decimal number upto 6 places of decimal in c++
float in c++
how print fload wiht 2 decimal in c++
round double to n decimal places c++
built in function in c++ for binary to decimal
how to print for limited decimal values in c++
how to format decimal palces in c++
New to Communities?
Join the community