core :: Numeric :: to_f
self
assert 5.to_f == 5.0 assert 5.to_f != 5
# The float equivalent of `self` # # assert 5.to_f == 5.0 # assert 5.to_f != 5 # Float and Int are not equals fun to_f: Float is abstract
redef fun to_f is intern
# assert(3.to_r.to_f == 3.0) redef fun to_f do return val.get_d
redef fun to_f do return self
# assert(11.to_bi.to_f == 11.0) redef fun to_f do return val.get_d