Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I fix x.99 adding to my numbers when using EternityNum?

Asked by 2 years ago
Edited 2 years ago

Hello, I am using EternityNum for my game (BNum but with more functions) and when my number reaches 13, it starts to display as 12.99 and so on but certain numbers like 14, 15, 16 do not?

local q = require(game.ReplicatedStorage.EternityNum)
-- my stuff
value = q.bnumtostr(sameValue)

Basically value should display as 0;1 0;2 0;3 and so on, but then it goes 0;11.000000002 and after some point to 0;17.999999996 and keeps decreasing.

The problem is if I do q.short(value) which basically makes numbers readable and adds suffix like 0;1 -> 1, 0;17.999999996 is gonna display as 17.99 which is really uncomfortable when it goes 499.99M

Answer this question