Hi all im trying to check a integer which must contain a decimal point is there any function which does this!!!
Example : 21.000
Printable View
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:)
For decimals always use float
Code:float number;
number=21.1234;
cout<<number;
Oh yeah... I forgot that :DQuote:
For decimals always use float