Going to use it, thanks!
Can’t wait for the 10 million update tho.
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
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.
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
That’s still too complex, it needs to be more readable
When will the 100 million update be out?
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.
I assume this post is a joke?
There’s just no way you wrote 2 million lines worth of if statements.
No? This is completely serious.
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… )
Some people just don’t get it 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…
I realized as soon after i posted my response, oops
Thank you for making this very efficient script, I won’t have to use functions like the one below anymore.
local function CheckEven(Number: string)
local NewNum = Number / 2
local NewNewNum = math.floor(NewNum)
if NewNewNum * 2 == Number and Number / 2 == NewNum and true and not false then
if 1 + 1 > 1 and 1 + 1 < 210326504346 then
return "Even"
else
return "9reyheroihnertiouhern9gneriugoneroiugneriongeoirgnoeringoeringoierngoineroihnieornhioernhioernhoiernhreiugeirug nbreiugeruigiubergiubnreguibeguibergiubergijnawqfduibergijnrguir89ri"
end
else
return "Odd"
end
end
print(CheckEven(332569065234658))
(by the way, this function actually works)
same energy