instance method
Prism::Translation::Parser::Lexer#parse_float
parse_float(value)
lib/prism/translation/parser/lexer.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/translation/parser/lexer.rb, line 557
def parse_float(value)
Float(value)
rescue ArgumentError
0.0
end
Parse a float from the string representation.