Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UKismetTextLibrary
Description
Generate an FText that represents the passed number as currency in the current culture. BaseVal is specified in the smallest fractional value of the currency and will be converted for formatting according to the selected culture. Keep in mind the CurrencyCode is completely independent of the culture it's displayed in (and they do not imply one another). For example: FText::AsCurrencyBase(650, TEXT("EUR")); would return an FText of "
| Name | AsCurrencyBase |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetTextLibrary.h |
| Include Path | #include "Kismet/KismetTextLibrary.h" |
| Source | /Engine/Source/Runtime/Engine/Private/KismetTextLibrary.cpp |
UFUNCTION (BlueprintPure, Meta=(DisplayName="As Currency"), Category="Utilities|Text")
static FText AsCurrencyBase
(
int32 BaseValue,
const FString & CurrencyCode
)