Bale
Minion
Since to_float("123.4") returns 123.4 without giving an error, shouldn't is_numeric("123.4") return true? This seems like a bug to me.
Code:
[COLOR="#808000"]> ash is_numeric("123.4")[/COLOR]
Returned: false
[COLOR="#808000"]> ash is_numeric("1234")[/COLOR]
Returned: true
[COLOR="#808000"]> ash to_float("1234")[/COLOR]
Returned: 1234.0
[COLOR="#808000"]> ash to_float("123.4")[/COLOR]
Returned: 123.4
[COLOR="#808000"]> ash to_float("123a4")[/COLOR]
The string "123a4" is not a float; returning 0.0 ()
Returned: 0.0
Last edited by a moderator: