did you ever find a fix for this? getting the same error rn
i just used 2 number values instead of a string since i never got a reply, like
local im = require(game.ReplicatedStorage.Infinitemath)
print(im.new({plr.leaderstats.MoneyA.Value, plr.leaderstats.MoneyB.Value}):ScientificNotation())
--if MoneyA is the base (9) and MoneyB is the exponent (101) then 9e+101 would print
--if you want to add value to them, like adding 1e+101 to that, do something like this:
local gain = im.new({1,101})
local newval = gain + im.new({plr.leaderstats.MoneyA.Value, plr.leaderstats.MoneyB.Value})
plr.leaderstats.MoneyA.Value = gain.first
plr.leaderstats.MoneyB.Value = gain.second
print(im.new({plr.leaderstats.MoneyA.Value, plr.leaderstats.MoneyB.Value}):ScientificNotation())
--1e+102
Tbh i just cant do that. ima just have to use another library and skip the metatables
Edit: Im now using eternitynum 2
You can just use one string stored like this;
number.first … ", " … number.second
I use other way to concatenate but in forum message doesn’t look good.
InfMath accepts inputs like this, so for example to convert it to suffix number just do
local number = InfMath.new(“2, 10”)
local String = number.first … ", " … number.second
InfMath.new(String):GetSuffix(true)
This is definitely the best part!
infinite math not allowing im.new(“1k”) or anything annoyed me, i fought of this but it is quite annoying to use
so next i tried eternity num, which you still couldnt do en.short(“1K”) because it would give a similar error
so I’ve just started making my own metatable library. the hardest part is performance but I’ve made it so you can use suffixed strings in every function so stupid problems like this doesnt happen.
Can’t you just do InfiniteMath.new("1, 3")
? (1K) – With 1 representing the first digit and 3 representing number of zeros –
Me personally I find it more readable this way rather than doing it your way because it is straight forward and easy.
i personally dont like using it that way ( also because its what im using it for is automated ). I’ve alwase used Suffixes/scientific notation.
Its only a problem because when i was adding 1+1 repeatedly ( for a point system ), when it reached 1000 it would auto suffix without me calling :GetSuffix()
Hello! Recently, I’ve come across games that do seem to exceed the double precision floating - point limit and what I find strange is that these games seem to represent huge numbers such as “1e3.08M”, without the addition operator?
Is this also possible to represent huge numbers with your module without the addition operator, or is this a fundamental computation of displaying large numbers, and is it tedious or easy to give such numbers a suffix?