Better then most of them out there, I’d definately be confused but at the end of the day its not the creator’s fault that a beginner cant use a ‘FREE’ ‘Community resource.’ Plus if any beginner came across this they would be thankful its not a script with 100 lines.
Probably, if I didn’t know what a variable was or didn’t know what floor or log10 did. Not everything has to be crystal clear for everyone. If you don’t know what floor is then you aren’t going to understand what math.floor is. I am failing to see your point here.
They are optional, doesn’t that already excludes it from “necessary”? You don’t need them to execute both math.floor or math.log10, in my opinion is just that you could have made their names a bit clearer, but as I said, it does not matter for me, read please.
So you think I should remove all the unnecessary variables and fit them into one line of code?
Two years later… That mess still baffles me.
Can we just all stop? I do agree with others that the code isn’t as much readable and it’s not too clean. But most of you just sound hard. Just make the code cleaner to read, okay?
Nobody said you need to make it into 1 line of code, I was just saying it’s unnessecary
well, I’m sorry to burst again but I was just telling him that you don’t need these unnessecary variables and then he came up with “readability”
I do know but again if you want you can copy paste the code and make it cleaner for yourself if you want. You don’t need to yell at him though. There might possibly be thousands of developers who really needed something like this, and they just copy-paste it. So, please stop the argument and make it better for yourself.
I’m not yelling, he is the one who started this argument, and it’s ending now anyway
honestly this is very good and so simple (yes its 1 line) but i like it because its 1 line. if i have like hundreds of line of code it would be too confusing but this is 1 line
I prefer to add more prefixes so here is my code:
return math.floor(((Number < 1 and Number) or math.floor(Number) / 10 ^ (math.log10(Number) - math.log10(Number) % 3)) * 10 ^ (Decimals or 3)) / 10 ^ (Decimals or 3)..(({"k", "M", "B", "T", "Qa", "Qn", "Sx", "Sp", "Oc", "No", "Dc", "Ud", "Dd", "Td", "QaD", "QnD", "SxD", "SpD", "OcD", "NoD", "Vg", "UvG", "DvG", "TvG", "QaVg", "QnVg", "SxVg", "SpVg", "OcVg", "NoVg"})[math.floor(math.log10(Number) / 3)] or "")