UKismetStringLibrary::Conv_DoubleToString
#include "Kismet/KismetStringLibrary.h"
Access: public
Specifiers: staticBlueprintPureBlueprintAutocast
Description
Converts a double-precision float value to its string representation. Backs the 'To String (Float)' Blueprint conversion node.
Caveats & Gotchas
- • Named 'To String (Float)' in the Blueprint node palette even though the underlying value and parameter are double, reflecting that Blueprint's 'Float' type is a 64-bit double since UE5.
- • Uses FString's default float formatting, which trims trailing zeros but can still produce long decimal representations for values like 1.0/3.0 — round the value first if you need a fixed number of decimal places for UI display.
Signature
static FString Conv_DoubleToString(double InDouble) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| InDouble | double | The double value to convert. | — |
Return Type
FString Example
Convert a double to string C++
double Health = 87.5;
FString HealthText = UKismetStringLibrary::Conv_DoubleToString(Health);
// HealthText == "87.5" Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?