I want to add ‘,’ and ‘.’ in numbers to help players understand.
Example: In game is shown “$8000000000”, this is difficult to understand, to it would be best “$8,000,000.000”.
Any ideas?
I want to add ‘,’ and ‘.’ in numbers to help players understand.
Example: In game is shown “$8000000000”, this is difficult to understand, to it would be best “$8,000,000.000”.
Any ideas?
You can try using the ToText / AsCurrency nodes (if Blueprint) or FText statics (if C++).
Keep in mind that Blueprints can only handle int32 (max of ~2.7bil) or floats which might get inaccurate once you hit 8+ digits. If you use C++ you should be fine.
Alternatively, if you operate on strings, you can try something like this:
The “As Currency” worked perfectly!
Thanks!