FText::AsCurrencyBase

Generate an [FText](API\Runtime\Core\Internationalization\FText) that represents the passed number as currency in the current culture.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Internationalization/Text.h

Include

#include "Internationalization/Text.h"

Source

/Engine/Source/Runtime/Core/Private/Internationalization/Text.cpp

Syntax

static FText AsCurrencyBase
(
    int64 BaseVal,
    const FString & CurrencyCode,
    const FCulturePtr & TargetCulture
)

Remarks

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); would return an FText of "6.50" in most English cultures (en_US/en_UK) and "6,50" in Spanish (es_ES) (where is U+20AC)

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback