Getting every single math function

I want to get everysingle math. function now you cant loop thorught it cuz there is nothing in math so what else should i use?

for i,v in pairs(math)do print(i) end

Think of it as a dictionary, Each index of the table is the name of the function. The value being the actual function.

for i,v in pairs(math)do 
	if(i == "floor")then 
		print(v(1.5)) --prints 1
	end
	
	print(i) --Prints the name of the function
end
1 Like

https://developer.roblox.com/en-us/api-reference/lua-docs/bit32
https://developer.roblox.com/en-us/api-reference/lua-docs/coroutine
https://developer.roblox.com/en-us/api-reference/lua-docs/debug
https://developer.roblox.com/en-us/api-reference/lua-docs/math
https://developer.roblox.com/en-us/api-reference/lua-docs/os
https://developer.roblox.com/en-us/api-reference/lua-docs/string
https://developer.roblox.com/en-us/api-reference/lua-docs/table
https://developer.roblox.com/en-us/api-reference/lua-docs/task
https://developer.roblox.com/en-us/api-reference/lua-docs/utf8

Some links you may find useful (all of the libraries).

1 Like