UKismetMathLibrary::Conv_FloatToDouble
Deprecated: Explicit conversions between floats and doubles are not necessary. Please remove node.
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Widens a 32-bit float to a 64-bit double. This function is deprecated — UE5 unifies float and double so no explicit widening node is required.
Caveats & Gotchas
- • Marked deprecated with DeprecatedFunction in UE5. Widening is implicit in C++ and the Blueprint compiler; any existing Blueprint node using this should be deleted.
- • The resulting double holds the same value as the original float — widening does not recover precision that was already lost when the float was created. If accurate doubles are needed, source them as doubles from the start.
- • BlueprintInternalUseOnly=true prevents this node from appearing in Blueprint search results.
Signature
static UE_INL_API double Conv_FloatToDouble(float InFloat) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| InFloat | float | The single-precision value to widen. | — |
Return Type
double Example
Widening a legacy float API result C++
float LegacyResult = SomeLegacyAPI();
double WideResult = UKismetMathLibrary::Conv_FloatToDouble(LegacyResult);
// Equivalent to: double WideResult = static_cast<double>(LegacyResult); Tags
Version History
Introduced in: 5.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | deprecated | Deprecated since UE5.0 — float/double unification makes explicit conversion unnecessary. |
Feedback
Was this helpful?