# Can someone explain this mathematical term?

I had an idea and wanted to see what would happen, I wanted to see how high roblox can go with numbers by script.

after doing this:

``````print(1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000)
``````

it prints:
1e+36

how big is this number and what does 1e mean?
and is there a number limit to how high I can make my script count?

1 Like

The 1 in the ‘1e’ is the first digit and the 36 is how many digits or zeros after it
so if i were to print

``````print(2000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000)
``````

it would print 2e+36

1e is a way to show big numbers with a few characters. The e means exponent.
1e means 10^.
whatever number after is what goes after the ^.
so 1e+36 is 10^36.

EDIT: typo @incapaz lmk lol

5 Likes

that’s a smart way to not overfill the output, I wonder how high I can make it go.

`1e36` is the same as `1 * 10^36`

2 Likes

I think 64 bit number is the highest but roblox will take one bit away for negative integers, so the highest is 2 ^ 63 which is 9.223372e+18

1 Like

As Lua 5.1 `number` is actually a `double`, the highest number you can store without makining it infinity is approximately `2 ^ 1024` or `1.7976931348623157e+308`, though the maximum safe integer a double can store is `2 ^ 53` or `9 007 199 254 740 992`.

That’s for `long long int` (or `int64`), not `double`, as all numbers in Lua 5.1 are double. Also there’s bignum/bigint that can bypass this.

1 Like

The limit that you can print in the output would be `1e+308`, as anything higher (i.e `1e+309`) will print give you “inf”.

Oh ok, 30 chars 30 chars 30 chars