4 lines
56 B
Ruby
4 lines
56 B
Ruby
|
|
def is_numeric?(s)
|
||
|
|
!!Float(s, exception: false)
|
||
|
|
end
|