Determine if a string is numeric: Difference between revisions

→‎{{header|Bracmat}}: Removed the part about Bracmat not doing FP, because now (2023) it does.
(→‎{{header|Bracmat}}: Removed the part about Bracmat not doing FP, because now (2023) it does.)
Line 1,484:
80000000000:~/#
S</syntaxhighlight>
Bracmat doesn't do floating point computations (historical reason: the Acorn Risc Machine a.k.a. ARM processor in the Archimedes computer did not have an FPU), but theThe pattern <code>~/# (|"." (|? 0|`) (|~/#:>0)) (|(E|e) ~/#)</code> recognises string representations of floating point numbers.
<syntaxhighlight lang="bracmat">@("1.000-4E-10":~/# (|"." (|? 0|`) (|~/#:>0)) (|(E|e) ~/#))
F
10

edits