I have a small problem. I want to make a currency converter, but can't figure out how to tackle this problem. Example below:
WhatIHave = 55
WhatIGet = WhatIHave/10
--Output: 5.5
How do I round down WhatIGet to the lowest whole number (in this case, 5). I don't want to round it up.

15 comments
I downrated it? Nope, someone else. I can't downrate... I need atleast 5 reputation to downrate. I have -9...
Just to let you know he said he wanted to make a converter I made an example so to say I also made a round function that way depending on where the decimal is he probably asked to lower it because he didn't know how to round it
I know how to round in real, but not on ROBLOX,
Just to let you know he said he wanted to make a converter I made an example so to say I also made a round function that way depending on where the decimal is he probably asked to lower it because he didn't know how to round it
Also, wouldn't the output say 6 5 instead of 5 6? because umm, 5.6+0.5 = 6.1 so round(6.1) = 6???
Just to let you know he said he wanted to make a converter I made an example so to say I also made a round function that way depending on where the decimal is he probably asked to lower it because he didn't know how to round it
No math.ceil takes it up it doesn't add the decimal also I meant roblox not real life
No math.ceil takes it up it doesn't add the decimal also I meant roblox not real life
Mind deleting the duplicates? You're posting duplicate comments apparently...
@lomb How do I replace
nwithWhatIHave?? It's a little confusing...n is the parameter. You call the function like round(WhatIHave). But if you want to only round down use math.floor(WhatIHave)
So would this work?: while true do wait() math.floor(WhatIHave) end I did an infinite loop because if you type once, hit enter then try again, it won't round...
It would work, but you are not doing anything with the rounded down value
Mine is downvoted. Why? it's a simple and objective answer.
@lomb, What's your ROBLOX username, I have to credit you. @Tes, Idk, I can't downvote even though it's my question...