Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Is it possible to get (mixed) fractions w/ lua?

What do I mean? I used to script a while ago, but I stopped & left the ROBLOX website; however, I don't remember ever thinking of how to get fractions w/ lua.

I'm wondering it is at all possible to get a fraction w/ lua, such as 5(2/1) & 7(8/5). Btw, I don't mean like 0.5 when doing 1/2, I mean like 1/8 - 1(2/1).

Do you have any code to provide? No, b/c as mentioned b4, I left the ROBLOX website.

Are you requesting this? No, I'm just wondering if it's at all possible.

Thanks in advance for the answer(s). :)

1 answer

I don't believe it's possible, but you can simply convert the mixed fraction to an improper fraction then into a fraction to use it in a script.

This discussion is preserved as it was. New answers, comments, and votes are closed.