engine
 
载入中...
搜索中...
未找到
函数
FastDecimalFormat 命名空间参考

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.

注解
If you use the version of FastDecimalFormat::NumberToString that takes an output string, the formatted number will be appended to the existing contents of the string.

函数说明

◆ Pow10()

CORE_API uint64 FastDecimalFormat::Pow10 ( const int32  InExponent)

Return the value of 10^exp for the given exponent value.

注解
The maximum exponent supported is 10^18.