[Issue 4673] Bug in std.string (isNumeric)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 20 14:06:09 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4673



--- Comment #5 from Petit Vincent <petitv.isat at gmail.com> 2010-08-20 23:06:05 CEST ---
Created an attachment (id=733)
Maybe a patch which works.

Well this is way to improve the current isNumeric function.

It works well for these kinds of numerics :

(+/-) 1, 1L, 1UL, 1i, 1Fi, 1Li, 1F
1.55
1e+52
1_500_250

nan, nani, nan+nani


(+/-) inf


At least, this patch correct bugs found in the std.isNumeric function.

Sure we can (should !) improve it but at least it works (except for numerics
like .5e-52 but 0.5e-52 works)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list