Mail Archives: djgpp/1998/04/30/11:30:54
Oon Lin wrote:
> I'd like to test is if the input was convertable to an int without
> loss of precision. For example , if the input given was 6.0000 , then
> converting it to an int would give 6. But if the input was 6.1234 ,
> then conversion should not take place.
take a look at
http://www.people.cornell.edu/pages/asu1/samples/index.html#Numbers
to see if that helps.
--
----------------------------------------------------------------------
A. Sinan Unur
Department of Policy Analysis and Management, College of Human Ecology,
Cornell University, Ithaca, NY 14853, USA
mailto:sinan DOT unur AT cornell DOT edu
http://www.people.cornell.edu/pages/asu1/
- Raw text -