Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
import "/fmt" for Fmt
|
||||
|
||||
System.print("Are these strings numeric?")
|
||||
|
||||
for (s in ["1", "3.14", "-100", "1e2", "NaN", "0xaf", "rose"]) {
|
||||
var i = Num.fromString(s) // returns null if 's' is not numeric
|
||||
System.print(" %(Fmt.s(4, s)) -> %((i != null) ? "yes" : "no")")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue