RealDocs

UKismetMathLibrary::FCeil64

function Engine Blueprint Since 5.0
#include "Kismet/KismetMathLibrary.h"
Access: public Specifiers: staticBlueprintPureUFUNCTION

Description

Rounds A up towards positive infinity and returns an int64. The int64 version of FCeil, safe for large floating-point values.

Caveats & Gotchas

  • Returns int64 but the double input has only 53-bit integer mantissa. Precision is lost for values beyond ~9 quadrillion, meaning the ceil result may be unexpected.
  • Blueprint labels this 'Ceil to Integer64'. Do not use the int32 FCeil node when the result needs to exceed 2 billion — silent overflow will occur.

Signature

static UE_INL_API int64 FCeil64(double A);

Parameters

Name Type Description Default
A double The floating-point value to ceil.

Return Type

int64

Example

Calculate minimum pages needed for a large record count C++
double RecordCount = 5000000000.0;
double PageSize = 1000.0;
int64 Pages = UKismetMathLibrary::FCeil64(RecordCount / PageSize); // returns 5000000

Tags

Version History

Introduced in: 5.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.