
S
Publisher
swcreeperking
Numberclass
Tools
Math Data GDScript Customizable Management Learning Documentation Performance
A class for creating larger than life numbers limit is ee16 (1 * 10 ^ (1 * 10 ^ 16))
This plugin has been mirrored from the Godot Asset Library.
The plugin author is in no way affiliated with Gadget.
If you are the author of this plugin and would like this mirror removed, please contact support@gadgetgodot.com.
how to use
create a new numberclass
var num: Numberclass = Numberclass.new(1)
numberclass has 2 parameters for its constructor:
mantissa: float = 0
and exponent: float = 0
there is also a from string supports:
- "123"
- "1e2"
- "1e2e3"
has _to_string() for string casts, only outputs in sci notation
has basic math operators like num.add()
most operators have float versions too
(but try not to use them because it creates a new numberclass everytime)