Display numbers and create a formatter
Use built-in notation or define the suffix sequence for your game.
Display a value
For 1250, To Fixed String with Decimal Places 2 produces 1250.00. Use To Formatted String with Formatter Name Scientific for scientific notation or Suffix for the configured suffix formatter. Parse with the matching formatter when accepting text input, and inspect the resulting error.
Create your notation
- In Content Browser, choose Miscellaneous → Scientific Number Formatter. Name the asset
DA_CoinsNotation. - Set Formatter Name to
CoinsNotation, Notation to Suffix, Exponent Step to 3 and Pattern to{Mantissa}{Suffix}. - Set Maximum Fractional Digits to 2 and Minimum Fractional Digits to 0.
- Set Initial Suffixes to an empty first entry, followed by
K,M,B. Tier zero must be empty. Suffixes are case-sensitive. - Set Preview Value to
1.25e3and Preview Parse Input to1.25K. Review both directions and save. - Add the asset to Project Settings → Scientific Number Settings → Formatter Assets. Reload configured formatters through the supported API, or restart the editor.
- Use To Formatted String with Formatter Name
CoinsNotationin your Blueprint.
1250 displays as 1.25K. Parsing that text with CoinsNotation recovers 1250. Adding the asset to settings also makes it part of the configured cook.
Handle invalid rules
A pattern must contain exactly one {Mantissa}, followed by {Suffix} or {Exponent} according to its notation. Resolve duplicate names, duplicate suffixes and invalid tokens before saving. Registry reload validates the complete replacement; a rejected configuration preserves the previous registry.
Formatting can round. Do not use interface text as lossless persistence; see save and recover.