On Thu, May 8, 2008 at 10:43 AM, Colin Bartlett <colinb2r / googlemail.com> wrote: > In this situation is there any advantage to testing for "Integer" first, > instead of just using > newval = someValue if ( Float( someValue ) rescue false ) > Sure is ;) you will know that it is an Integer. But I guess you do not care, in that case no, just go for the Float() rescue idiom. HTH Robert