Help with handwritten advanced number system

No it’s not a joke, it is a advanced number system made by my hands.

Exactly

You’re welcome, enjoy using my advanced code.

I’m sure that this is advanced code made by me.

4 Likes

deprecated ~= removed

Im one of those scripters who sitll use getfenv, setfenv regardless if its depreacted or not.

this gave me a laugh that i needed. thanks.

3 Likes

Going to use it, thanks!
Can’t wait for the 10 million update tho. :purple_heart:

3 Likes

I must say that this is the most optimized and efficient code that I has EVER seen. I never knew it could be this simple. For some reason I have always used this:

int num = --my number

if num % 2 == 1 then
      print("its odd and this is inefficient)

Not anymore, I will be changing to using if elses as they are obviously better

2 Likes

Exactly

You’re welcome!

Why tho, it is a serious advanced number system?

Too complicated

Just released 10 MILLION version

Download: Release 10 million update · sgisheree/Help-with-handwritten-advanced-number-system · GitHub

Enjoy this great andvanced number system!

Next goal: 100 million.

3 Likes

Maybe you can use a table that stores every number as the key then determine if it’s Odd or Even using a boolean variable.

local evenOrOdd = {}
for i = 1, 1000000 do
	table.insert(evenOrOdd, i %= 2)
end

function isEven(n)
	return evenOrOdd[n]
end
1 Like

That’s still too complex, it needs to be more readable

3 Likes

When will the 100 million update be out?

1 Like
local myNumber = 817689

function isEven(input)
   local half = input/ 2
   if half == math.floor(half) then
      return true
   else
      return false
   end
end

if isEven(myNumber) then
   print("Boohoo, my number is even.")
else
   print("Yippie, my number is odd.")
end

You should use Quadrillion Booleans, Strings, Numbers, and Tables, make it very, and I mean, VERY easy to understand, since yours is a bit less easy to understand.

1 Like

I assume this post is a joke?
There’s just no way you wrote 2 million lines worth of if statements.

1 Like

No? This is completely serious.

4 Likes

I thank you for this amazing resource, I can now run my game at an ultra performant 4.7 fps!11!!!1

Also, what’s the progress on the 100 million version? I might need 100,000,069 numbers instead. (Asking for a friend… :wink:)

2 Likes

Some people just don’t get it :rofl: :rofl: specially that WaflSyrup guy, damn wake up bruh

Guys stop providing complicated “solutions”, OP’s solution is much more simple to understand and readable!

please learn to take a joke

yours lasted too long, and why did you stop with it here?

don’t be ashamed

I think 7 actual Luau code snippets were provided to this topic, really? Open the quotes I made.

what’s wrong with running a joke in a joke post?

I thought the joke was yours…