Determine if a string is numeric: Difference between revisions

(Added Bracmat example)
Line 1,539:
"-0b101" -> -5 <type 'int'>
>>></lang>
 
=={{header|R}}==
 
<lang R>> strings <- c("152", "-3.1415926", "Foo123")
> suppressWarnings(!is.na(as.numeric(strings)))
[1] TRUE TRUE FALSE
</lang>
 
=={{header|RapidQ}}==
Anonymous user