how to convert the floating value into integer or long integer.
Ttelmah Guest
Posted: Fri Sep 04, 2009 6:59 am
C does this automatically. Just pass a value from a float variable to a int variable, and the int variable receives the integer part of the float. A search here will find a lot of examples, and also if you search on the keyword 'cast', you will find how to force the conversion at different points in an equation.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum