LotoNika
(LotoNika)
February 14, 2024, 9:45pm
#1
So basically I’ve started making a advanced script checking if the number is even or uneven.
What number support could I add next?
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
LotoNika
(LotoNika)
February 14, 2024, 9:49pm
#5
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
6 Likes
LotoNika
(LotoNika)
February 14, 2024, 9:52pm
#9
Exacly, but what other numbers should I add support to?
7 Likes
WaflSyrup
(WaflSyrup)
February 14, 2024, 10:30pm
#12
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
Entildo
(Fase)
February 14, 2024, 10:37pm
#13
Refer to OP’s reply, we don’t need complicated scripts when we have a simple one
13 Likes
WaflSyrup
(WaflSyrup)
February 14, 2024, 10:41pm
#16
i’m not trolling, if anything i’m just misunderstanding it
7 Likes
Entildo
(Fase)
February 14, 2024, 10:42pm
#17
OP found a simple solution to a large problem, you need to praise them instead of providing complicated scripts
26 Likes
WaflSyrup
(WaflSyrup)
February 14, 2024, 10:43pm
#18
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
Orbular3
(Orbular3)
February 14, 2024, 10:45pm
#19
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
Entildo
(Fase)
February 14, 2024, 10:46pm
#20
Your code is not productive enough. Large problem.
10 Likes
WaflSyrup
(WaflSyrup)
February 14, 2024, 10:47pm
#21
try making it more productive then
6 Likes
Entildo
(Fase)
February 14, 2024, 10:48pm
#22
OP already has a very productive code.
osquinn:
15 Likes
WaflSyrup
(WaflSyrup)
February 14, 2024, 10:48pm
#23
it’s probably gonna take a whole second or two for it to even do 500,000
6 Likes
Orbular3
(Orbular3)
February 14, 2024, 10:51pm
#24
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
2112Jay
(2112Jay)
February 14, 2024, 11:00pm
#25
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