Re: How to know if a converted string to float is really a float number ?

2020-01-18 Thread Ni Va
Ok Tony so I will prevent with regular expression that fit to float number. It seems well optimized. Thank you Le vendredi 17 janvier 2020 20:28:48 UTC+1, Tony Mechelynck a écrit : > > On Fri, Jan 17, 2020 at 7:29 PM Ni Va > > wrote: > > > > HI, > > > > According to str2float help, I have tr

Re: How to know if a converted string to float is really a float number ?

2020-01-17 Thread Tony Mechelynck
On Fri, Jan 17, 2020 at 7:29 PM Ni Va wrote: > > HI, > > According to str2float help, I have tried this : > > '3,3e+004'->substitute(',', '.', 'g')->str2float() which return 33000 number. > > According to good conversion in this case it is a float num but if I replace > by cases where it is not a

How to know if a converted string to float is really a float number ?

2020-01-17 Thread Ni Va
HI, According to str2float help, I have tried this : '3,3e+004'->substitute(',', '.', 'g')->str2float() which return 33000 number. According to good conversion in this case it is a float num but if I replace by cases where it is not a well form of num that no have to be converted. '3,3e+00