RealDocs

UKismetStringLibrary::Conv_StringToDouble

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

Description

Parses a string and returns the floating-point value it represents. This is the Blueprint 'String to Float' conversion node, which internally works in double precision.

Caveats & Gotchas

  • Returns 0.0 for strings that can't be parsed, with no separate success flag to detect invalid input.
  • Accepts leading whitespace and trailing non-numeric characters after the numeric portion (e.g. "3.14m" parses as 3.14) rather than rejecting the whole string.

Signature

static double Conv_StringToDouble(const FString& InString)

Parameters

Name Type Description Default
InString const FString& The string to parse as a floating-point value.

Return Type

double

Example

Parse a decimal setting value C++
FString ValueText = TEXT("0.75");
double Sensitivity = UKismetStringLibrary::Conv_StringToDouble(ValueText);

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.