GodotBigNumberClass
GodotBigNumberClass copied to clipboard
Create Big4.gd for Godot 4.0
Changes in new file for GD4:
-
TYPE_REAL
changed toTYPE_FLOAT
-
stepify
changed tosnapped
-
toFloat
function was changed to returnsnapped(float(mantissa*pow(10.0, exponent)),0.01)
instead ofstepify(float(str(mantissa) + "e" + str(exponent)),0.01)
as Godot 4 has nofloat(String)
float constructor -
const other
changed tovar other
because GD4 will not let you change aconst
dictionary- Static functions that utilized
other
changed to be not static because static functions cannot access instance variables
- Static functions that utilized
- Added
@warning_ignore
as# warning-ignore
is deprecated