Maths Module that does all the maths for you [[QuickMaths]]

Wasting time doing maths on roblox? Well this module is for you!
If your a pretty bad at mathematics this module can solve percentages, mean, round numbers, find the square root, list factors + mutiples, list the range for numbers, list median for a number and if the number is even

Github
game-template/src/ReplicatedStorage/Framework/External/Util/QuickMath.lua at main · kenzcoder/game-template · GitHub

Roblox Model
https://create.roblox.com/marketplace/asset/13931030497/QuickMaths

I was creating a game framework / template and decided to add some custom util modules so you can use them, everything in there is open source

Let me know if the module has any bugs!

5 Likes
function Math:isEven(num: number): boolean
	local hasRemainder = math.fmod(num, 2)
	local isEven

	if hasRemainder == 0 then
		isEven = true
	else
		isEven = false
	end

	return isEven
end

You can just do

function Math:isEven(num: number): boolean
	return (num % 2) == 0
end

OR

function Math:isEven(num: number): boolean
	return ( math.fmod(num, 2) ) == 0
end
4 Likes

Not to be rude but I suppose that that is for presentation.

Well a math module would be nice but this is simple mathematics which some are even built in functions within lua such as math.round() so if any advanced math were to be put in this then it would be really helpful.

For sure, i’ll be updating it as the days go by and when I get more time

Hi

i made a module like this once, trust me it’s not worth it. There are already really good maths modules :slight_smile: Not saying your work is bad, just saying it already exists!

2 Likes

I made a PR for this