RealDocs

UKismetTextLibrary::Conv_IntToText

function Engine Blueprint Since unknown
#include "Kismet/KismetTextLibrary.h"
Access: public Specifiers: staticBlueprintPureBlueprintAutocast

Description

Converts an integer to formatted, localized text using the given number formatting options. Backs the 'To Text (Integer)' Blueprint autocast node.

Caveats & Gotchas

  • Formatting is culture-sensitive — bUseGrouping produces '1,000' in en-US but '1.000' in many European locales, so don't assume a specific separator character in downstream string logic.
  • The default values here are duplicated from FNumberFormattingOptions; a source comment on this function warns to keep them in sync manually if the engine defaults ever change.
  • Because it's BlueprintAutocast, plugging an int into a text pin silently applies these default formatting options — use the explicit node with custom parameters if you need different formatting.

Signature

static FText Conv_IntToText(int32 Value, bool bAlwaysSign = false, bool bUseGrouping = true, int32 MinimumIntegralDigits = 1, int32 MaximumIntegralDigits = 324);

Parameters

Name Type Description Default
Value int32 The integer value to convert.
bAlwaysSign bool Whether to always show a sign (+/-), even for positive values. false
bUseGrouping bool Whether to insert culture-appropriate thousands separators (e.g. 1,000). true
MinimumIntegralDigits int32 Minimum number of digits to display, zero-padding if needed. 1
MaximumIntegralDigits int32 Maximum number of digits to display, truncating leading digits if exceeded. 324

Return Type

FText

Example

Format a score with thousands separators C++
int32 Score = 125000;
FText ScoreText = UKismetTextLibrary::Conv_IntToText(Score); // "125,000"

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.