4 lines
51 B
Ruby
4 lines
51 B
Ruby
|
|
def is_numeric?(s)
|
||
|
|
!!Float(s) rescue false
|
||
|
|
end
|