Determine if a string is numeric: Difference between revisions
Content deleted Content added
Added Bracmat example |
|||
Line 1,539: | Line 1,539: | ||
"-0b101" -> -5 <type 'int'> |
"-0b101" -> -5 <type 'int'> |
||
>>></lang> |
>>></lang> |
||
=={{header|R}}== |
|||
<lang R>> strings <- c("152", "-3.1415926", "Foo123") |
|||
> suppressWarnings(!is.na(as.numeric(strings))) |
|||
[1] TRUE TRUE FALSE |
|||
</lang> |
|||
=={{header|RapidQ}}== |
=={{header|RapidQ}}== |