How to display 9,999,999 as 9999K?

As the title says, how can I display: 9,999,999 as 9999k? 999,999,999 as 999M? and 2,147,483,647 as 2147M. If you guys are wondering why I need this, is that I am making a rework of Runescape OSRS.

This is my current prototype working with the hud before working with the gameplay.

As you can see the text under the blue bar it shows 9999999 which is the coins, and It doesn’t show my desired output which is 9999K. I hope you guys can help me out.

Hi The SteelJC,

I made an example from the widget Blueprint that does mostly what you mentioned. Here is a short video showing it in use. [Video][1] Here is a screenshot of the widget blueprint event graph:

Just to explain you have to edit the number that is being input based off what the value is. The first thing I check is if the random number is >=1,000 or if it is >1,000,000. I then divide by an appropriate amount to decrease the size of the number and append an M or a K. The other way to do things is to use a left chop node and what this does is cut off a certain number of characters only leaving the left side. For example if you have left chop set to 4 and you input a string of 57,000 it will display 57 because 4 characters were removed.

Let me know if that helps,

Ed

The left chop helped me. It allowed me to cut off the maximum limit of integer type which is 2,147,483,647, and make it appear as 2147M. for the fast answer I hope this helps other people too.

Good luck with your project. I really like the idea of an old school Runescape remake.