of     1   

BloodLitch101
#228415391Monday, December 04, 2017 3:46 AM GMT

why does this print "11st" ConvertPlacement = function(Number) local Suffixes = {"st", "nd", "rd"} local Digit = Number % 10 return (Suffixes[Digit] and Number..Suffixes[Digit] or Number.."th") end print(ConvertPlacement(11))
BloodLitch101
#228415839Monday, December 04, 2017 4:00 AM GMT

pls gigbite help me guy
128Gigabytes
#228415969Monday, December 04, 2017 4:05 AM GMT

Because you used module 10 on the digit so 11 becomes 1 local function convertPlacement(x) return (tostring(x) .. ((x == ## ### #### or ((x == 2) and "nd" or ((x == ## ### #### or "th")))); end
greedyawesomeman
#228415973Monday, December 04, 2017 4:05 AM GMT

local Digit = Number % 10 11 mod 10 returns 1, which i'm guessing would give you the prefix "st" Also, something weird to ponder about english: 1st 11th 21st 31st 41st ... I'd add a special if statement for 11 because it ends in 1 but doesn't give the suffix "st"
128Gigabytes
#228416006Monday, December 04, 2017 4:06 AM GMT

https://twitter.com/128Gigabytes/status/937533372246654982
128Gigabytes
#228416105Monday, December 04, 2017 4:09 AM GMT

Oh I see, your original actually did account for things like 41st and 42nd, mine doesn't. You'll need use your script but make a special case for 11 12 and 13 because they don't fit the pattern.
128Gigabytes
#228416221Monday, December 04, 2017 4:14 AM GMT

https://twitter.com/128Gigabytes/status/937535333239021568 there also there is no reason I did it with a long ternary instead of if statements, I just like ternary's
BloodLitch101
#228416362Monday, December 04, 2017 4:19 AM GMT

https://twitter.com/128Gigabytes/status/937533372246654982 can't i just use that one, it works perfectly
128Gigabytes
#228416477Monday, December 04, 2017 4:24 AM GMT

You can if you want but the second version I gave you works perfectly, the one you linked doesn't.

    of     1