mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
e647b16d1d
Unless it is defined in `numeric.c`.
10 lines
201 B
Ruby
10 lines
201 B
Ruby
##
|
|
# Float
|
|
#
|
|
# ISO 15.2.9
|
|
class Float
|
|
# mruby special - since mruby integers may be upgraded to floats,
|
|
# floats should be compatible to integers.
|
|
include Integral
|
|
end if class_defined?("Float")
|