# Formatting a String with three int's

**URL:** <https://forums.unrealengine.com/t/formatting-a-string-with-three-ints/2763186>\
**Category:** C++\
**Tags:** unreal-engine, question\
**Created:** [September 6, 2026, 12:41pm UTC](https://forums.unrealengine.com/t/formatting-a-string-with-three-ints/2763186 "2026-09-06T12:41:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Extrone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/extrone/32/906554_2.png) [@Extrone](https://forums.unrealengine.com/u/Extrone)\
**Post date:** [September 6, 2026, 2:17pm UTC](https://forums.unrealengine.com/t/formatting-a-string-with-three-ints/2763186/2 "2026-09-06T14:17:45Z")

</div>

Found this post about using FText::Format on a String Table

> [@\[Solved\] Using FText::Format with TexBlock Text from StringTable](https://forums.unrealengine.com/t/solved-using-ftext-format-with-texblock-text-from-stringtable/145326/2):
>
> From my page on [localizing UIs in Unreal](http://benhumphreys.ca/unreal/ui-localization/#do-use-formattext), you can use FFormatNamedArgs and pass that into FText::Format: int32 Value = 150; FText FormatInput = FText::FromStringTable("MyTable", "HealthFormat"); FFormatNamedArguments Args; Args.Add("HealthValue", Value); FText FormattedText = FText::Format( FormatInput, Args );

In your case, the code (not tested) could be something like this:

```auto
int32 Value1 = 1;
int32 Value2 = 2;
int32 Value3 = 3;

FText FormatInput = FText::FromString("{Int1}d{int2} +{int3}"); // 2d6 +3

FFormatNamedArguments Args;
Args.Add("Int1", Value1);
Args.Add("Int2", Value2);
Args.Add("Int3", Value3);
FText FormattedText = FText::Format( FormatInput, Args );

```

---

_[View the full topic](https://forums.unrealengine.com/t/formatting-a-string-with-three-ints/2763186)._
