EternityNum math.floor

I have been working on an incremental and i was wondering how can i calculate math.floor of huge numbers. i have been using eternityNum and i seen there is no provided functions. Anyone know a solution?

1 Like

I don’t know what eternityNum is but if that stores numbers as strings you could do :split(".")[1]

eternitynum saves it in form of 2e200, so i could theoreticly use :split(“e”) and then front part multiply by 100 , do math.floor and devide by 100. this would make first part 2 decimal placed and rest would stay. i will make sure to try this, thanks

1 Like

do it by string math: convert to scientific notation, move the decimal, chop everything after it, then rebuild a big number from the integer digits.

I can give a example if you want

Oh no i get what you mean, i dont know how i didnt remember that, thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.