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?

35 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")
11 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
12 Likes

stop hacking???../>>.,cmscma

1 Like

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

10 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.

2 Likes

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

3 Likes

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

3 Likes

add support for 69 bilion pls

4 Likes

I’m actually initially planning to support up to 1 billion when it comes to this script. But I may think about this later.

The script now supports up to a million and has over 2 million lines.

2 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
1 Like

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

4 Likes

okay so

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

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

3 Likes

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

10 Likes

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

2 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.

12 Likes

Your code is not productive enough. Large problem.

4 Likes

try making it more productive then

2 Likes

OP already has a very productive code.

5 Likes