Hi all im trying to check a integer which must contain a decimal point is there any function which does this!!!
Example : 21.000
This is a discussion on HELP PLEASE (Checking a int that contains a decimal point) within the C++ Programming forums, part of the General Programming Boards category; Hi all im trying to check a integer which must contain a decimal point is there any function which does ...
Hi all im trying to check a integer which must contain a decimal point is there any function which does this!!!
Example : 21.000
There is no desimals in integer... period![]()
Making error is human, but for messing things thoroughly it takes a computer
For decimals always use float
Code:float number; number=21.1234; cout<<number;
C++ Is Powerful
I use C++
There fore I am Powerful
Oh yeah... I forgot thatFor decimals always use float![]()
Making error is human, but for messing things thoroughly it takes a computer