Help with handwritten advanced number system

So basically I’ve started making a advanced script checking if the number is even or uneven.

What number support could I add next?

image

Script: https://github.com/sgisheree/Help-with-handwritten-advanced-number-system/blob/main/even.lua

For now it supports up to a million, should I add support for higher numbers?

96 Likes

I have made a script that supports all numbers and its 99999 IQ method hypernull work unpatched 2024 bypass byfron

local number=9

if number%2==1 then
    print("uneven")
    return
end

print("even")
37 Likes

A bit more “in depth” to your amazing code is

function EvenOrOdd(number)
	if number % 2 == 0 then
		print(number .. " is even")
	else
		print(number .. " is odd")
	end
end
28 Likes

Too complicated, I think my version is a lot easier to understand.

41 Likes

Yeah I agree I skidded it from c++ application and converted it to roblox luau. Its kinda complicated and yours is easier to understand.

5 Likes

Then add in each number its own decimal :+1:

6 Likes

Exacly, but what other numbers should I add support to?

7 Likes

why don’t you just use something like this?

function getParity(v: number)
	if v % 2 == 0 then
		return "even"
	else
		return "uneven"
	end
end

print(getParity(6) ) -- even
8 Likes

Refer to OP’s reply, we don’t need complicated scripts when we have a simple one

13 Likes

okay so

  1. it’s not complicated at all?
  2. their script has 2 million lines (too much) and it has a limit
8 Likes

i’m not trolling, if anything i’m just misunderstanding it

7 Likes

OP found a simple solution to a large problem, you need to praise them instead of providing complicated scripts

26 Likes

it’s not a large problem and it’s not a simple solution, the code i provided isn’t even complicated at all

9 Likes

Your script has no error support for imaginary numbers, whereas OP ensures it returns “Unsupported number” if it receives an imaginary number. And don’t even get me started on the inevitable quantum entanglement issues your script is bound to suffer from.

28 Likes

Your code is not productive enough. Large problem.

10 Likes

try making it more productive then

6 Likes

OP already has a very productive code.

15 Likes

it’s probably gonna take a whole second or two for it to even do 500,000

6 Likes

Just because a certain function isn’t useful to you, doesn’t mean it is useless to everyone. Anyway I’m sure you’ll come crawling back once Roblox deprecates your precious little “%” symbol.

29 Likes
local test = 5

function isOdd(number)
	return number %2~=0
end

function isEven(number)
	return number %2==0
end

if(isOdd(test))then
	print("odd")
else print("even")
end

print(isOdd(test))
print(isEven(test))

8 Likes