Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Numberclass

An asset by SW_CreeperKing
The page banner background of a mountain and forest
Numberclass hero image

Quick Information

0 ratings
Numberclass icon image
SW_CreeperKing
Numberclass

A class for creating larger than life numberslimit is ee16(1 * 10 ^ (1 * 10 ^ 16))

Supported Engine Version
4.0
Version String
0.0.1
License Version
MIT
Support Level
community
Modified Date
27 days ago
Git URL
Issue URL

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)

A class for creating larger than life numbers
limit is ee16
(1 * 10 ^ (1 * 10 ^ 16))

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Numberclass icon image
SW_CreeperKing
Numberclass

A class for creating larger than life numberslimit is ee16(1 * 10 ^ (1 * 10 ^ 16))

Supported Engine Version
4.0
Version String
0.0.1
License Version
MIT
Support Level
community
Modified Date
27 days ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers