rbs
rbs copied to clipboard
Update Float
This updates Float:
- Move constants inside it
- Added
Numeric::_XXXinterfaces for operators, as well asNumeric::_Coerce -
Float#{+,-,*,/,%,**,<,>,<=,>=,<=>,divmod,quo}: Now usesNumeric::_XXXmethods. - Multiple methods (eg
Float#===andFloat#fdiv) are now aliases - Revamped
Float#round. - Moved all functions not defined on
Float, but ratherNumeric, to the bottom of the function and marked them as deprecated - Overhauled the tests
The changes look good, but it doesn't work well with the current version of Steep. It is a kind of bug of Steep, so I will fix the problem and then merge this PR, to avoid unnecessary type checking issues at the end users side.