How to Convert double to FString? (C++)

I know how to convert float to FString;

FString::SanitizeFloat(hour);

but there is not method

FString::SanitizeDouble(hour);

1 Like

/**
* Converts a float string with the trailing zeros stripped
* For example - 1.234 will be “1.234” rather than “1.234000”
*
* @param InFloat The float to sanitize
* @returns sanitized string version of float
*/
static FString SanitizeFloat( double InFloat );

This is from the source code, so you can use float or double.

2 Likes