Determine if a string is numeric: Difference between revisions

m
Line 495:
 
1 1 0</lang>
Works with more recent versions of <B>Dyalog APL</B><lang apl> ⊃⎕VFI '¯' @ ('-'∘=) '152 -3.1415926 Foo123' ⍝ Fast: replacement of - with APL high-minus required for ⎕VFI
<lang apl> ⊃⎕VFI {'¯' @ ('-'∘=) ⍵} '152 -3.1415926 Foo123' ⍝ Fast: replacement of - with APL high-minus required for ⎕VFI
1 1 0
⊃⎕VFI '-' ⎕R '¯' ⊣ '152 -3.1415926 Foo123' ⍝ Simple: (ditto)
1 1 0</lang>