UKismetStringLibrary::BuildString_Double
#include "Kismet/KismetStringLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Builds a new string in the form AppendTo+Prefix+InDouble+Suffix by formatting a double value and concatenating it between the given prefix and suffix.
Caveats & Gotchas
- • Despite the Blueprint display name 'Build String (Float)' and the parameter being a double, the underlying implementation still uses FString::SanitizeFloat, so the printed precision matches SanitizeFloat's rounding rather than the full double precision.
- • AppendTo is not modified in place — the function preallocates and returns a brand-new FString on every call, so chaining many BuildString_ nodes to construct one long string is less efficient than accumulating with FString::Append.
Signature
static FString BuildString_Double(const FString& AppendTo, const FString& Prefix, double InDouble, const FString& Suffix) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| AppendTo | const FString& | An existing string to use as the start of the result. | — |
| Prefix | const FString& | A string inserted after AppendTo and before the formatted value. | — |
| InDouble | double | The value to format and insert. | — |
| Suffix | const FString& | A string appended to the end of the result. | — |
Return Type
FString Example
Format a HUD score string C++
FString ScoreText = UKismetStringLibrary::BuildString_Double(TEXT(""), TEXT("Score: "), 12.5, TEXT(" pts"));
// ScoreText == "Score: 12.5 pts" Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?