Malicondi Malicondi loading

MrKingofScratch wrote:

Use a text engine such as https://scratch.mit.edu/projects/928930123/
That isn't what they're asking for. if i read correctly

To make a number counter with letters (1.6k 6.24m 91.4b etc) it's pretty simple and all you have to do is divide the letter by the number, then floor it and add a letter to it, and use another variable to show the number instead of the original variable/number.

Heres the code to do so, d is the number of decimals you want:
define number counter with decimals (d)
if <not<(number) < (1000)>> then // checks if greater than or equal to 1000.
set [counter v] to (join (([floor v] of (((number) / (1000)) * ([10^ v] of (d) ::operators))) / ([10^ v] of (d) ::operators)) [k])
if <(number) > ([10^ v] of (6) ::operators)> then // this just makes it neater, same as 1 million.
set [counter v] to (join (([floor v] of (((number) / (1000000)) * ([10^ v] of (d) ::operators))) / ([10^ v] of (d) ::operators)) [m])
end
if <(number) > ([10^ v] of (9) ::operators)> then
set [counter v] to (join (([floor v] of (((number) / (1000000000)) * ([10^ v] of (d) ::operators))) / ([10^ v] of (d) ::operators)) [b])
and add more if blocks as needed. For example, if you wanted to show this number: 1.42k then you would use the block like this:
number counter with decimals (2) ::custom // returns 1.42k if the number is 142X, where x is a number 0-9.

Hope this helps!