Method: Yast::Builtins.tofloat

Defined in:
src/ruby/yast/builtins.rb

.tofloat(value) ⇒ Object

Deprecated.

Use Object#to_f instead

Converts a value to a floating point number.



300
301
302
303
304
305
306
# File 'src/ruby/yast/builtins.rb', line 300

def self.tofloat(value)
  return nil if value.nil?

  return value.to_f
rescue
  return nil
end