Good afternoon, I'm having difficulty getting M (million) K in my code, somehow simple, because I need it for more than one place, for example, I need the X value to be different from the Y value, but each one of them need to appear K or M if it passes a thousand or million, not 1,200,000.
I would just appear for example 1.2M.
Will I need to repeat the code in all the parts that will be made?
What is the best way to do it? Thanks in advance
You can use a Function to convert the number, then you just need to put a Function.Call(...) into your "Set Text" events.
Here is an example capx: dropbox.com/s/ewwpxwd56xb6rhi/ConvertNumberToText%20Function.capx
Add the Function object to your project if you haven't already done so, then copy and paste the Function-> On "ConvertNumberToText" event from the example into your project.
Then everywhere you have Set text to CustoClicker replace it with Set text to Function.Call("ConvertNumberToText", CustoClicker)
And everywhere you have Set text to Clickers replace it with Set text to Function.Call("ConvertNumberToText", Clickers)
UPDATE
I made a c3p example since the Function object has been replaced in C3
dropbox.com/s/9tcry1jjyfomfkw/Number%20Function.c3p