RealDocs

UKismetStringLibrary::Conv_StringToInt64

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

Description

Parses a string and returns the 64-bit integer value it represents. Use this instead of Conv_StringToInt when the value may exceed the 32-bit int range, such as Steam IDs or large save-game counters.

Caveats & Gotchas

  • Returns 0 for unparseable strings with no way to distinguish that from a genuine 0 value, the same limitation as the 32-bit Conv_StringToInt.
  • Parsing stops at the first non-numeric character, so partially numeric strings silently truncate rather than failing.

Signature

static int64 Conv_StringToInt64(const FString& InString)

Parameters

Name Type Description Default
InString const FString& The string to parse as a 64-bit integer.

Return Type

int64

Example

Parse a 64-bit Steam ID from a string C++
FString IdText = TEXT("76561198000000000");
int64 SteamId = UKismetStringLibrary::Conv_StringToInt64(IdText);

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.