how to approximate floating number into integer?
Posted: Mon Jul 11, 2011 9:05 am
i m struck n i need help urgently.
the problem is s1 is floating point number and it varies as 0.2,0.4,0.6......1.8,2.0,2.2 n so on
and ints1 is integer
in calculation i typed
ints1=s1
but its not working.
what i should do to approximate s1?
whats the method of converting floating point number into integer (rejecting the the value in decimal places).
the problem is s1 is floating point number and it varies as 0.2,0.4,0.6......1.8,2.0,2.2 n so on
and ints1 is integer
in calculation i typed
ints1=s1
but its not working.
what i should do to approximate s1?
whats the method of converting floating point number into integer (rejecting the the value in decimal places).