Provides efficient and culture aware number formatting and parsing. 更多...
函数 | |
| CORE_API const FDecimalNumberFormattingRules & | GetCultureAgnosticFormattingRules () |
| Get the formatting rules to use when you don't care about culture. | |
| CORE_API uint64 | Pow10 (const int32 InExponent) |
| Return the value of 10^exp for the given exponent value. 更多... | |
Provides efficient and culture aware number formatting and parsing.
You would call FastDecimalFormat::NumberToString to convert a number to the correct decimal representation based on the given formatting rules and options. You would call FastDecimalFormat::StringToNumber to convert a string containing a culture correct decimal representation of a number into an actual number. The primary consumer of this is FText, however you can use it for other things. GetCultureAgnosticFormattingRules can provide formatting rules for cases where you don't care about culture.
| CORE_API uint64 FastDecimalFormat::Pow10 | ( | const int32 | InExponent | ) |
Return the value of 10^exp for the given exponent value.