Please note that numbers containing a floating point (also called comma in some languages) are not integers - they are floating point values. In C++ there are two floating point datatypes: float and double.
I'm assuming that's what you need. The same question was asked recently, so I would sugegst you have a look at the answers there: http://www.cplusplus.com/forum/beginner/112388/
Please do let us know if you require any further help.