Re: [Gambas-user] IsFloat

2010-12-21 Thread Jussi Lahtinen
Also that would prevent mix up with IsXXX functions when moving from Gambas 2 to 3. Jussi On Tue, Dec 21, 2010 at 19:18, Jussi Lahtinen wrote: > I was wondering if some (definitely not all!) of IsXXX functions should > have different names, example SafeForXXX or similar? > That would describe t

Re: [Gambas-user] IsFloat

2010-12-21 Thread Jussi Lahtinen
I was wondering if some (definitely not all!) of IsXXX functions should have different names, example SafeForXXX or similar? That would describe their new functionality better. Example, IsNull really tells if value Is Null or not (so IsNull is good name), but IsFloat tells only if value is safe to

Re: [Gambas-user] IsFloat

2010-12-21 Thread Benoît Minisini
> I think it's right, because an integer isn't a float. Maybe you're thinking > in other function like "CanBeConvertedToFloat()" (doesn't exist in gambas > but it's on my own functions set). > > Regards, > Ricardo Díaz > I think Jussi is right there. After all, an Integer or a Long can always be

Re: [Gambas-user] IsFloat

2010-12-20 Thread Ricardo Díaz Martín
I think it's right, because an integer isn't a float. Maybe you're thinking in other function like "CanBeConvertedToFloat()" (doesn't exist in gambas but it's on my own functions set). Regards, Ricardo Díaz 2010/12/20 Jussi Lahtinen > Hi! > > Is this correct; > ? IsFloat("123") > False > > 123

[Gambas-user] IsFloat

2010-12-20 Thread Jussi Lahtinen
Hi! Is this correct; ? IsFloat("123") False 123 should be safe value for float, even if it can be stored to integer. With consistent logic IsLong("1") should answer False, so I think this is bug. Gambas 3 rev 3384 @ Ubuntu 10.10 64bit Jussi -