The Lab
BUILTIN native

CEIL

returns int1 parambuild 1207

Rounds value up to the nearest integer and returns it.

Signature

C
int CEIL(float value); // 0x11E019C8F43ACC8A b1207

Parameters

#NameType
1valuefloat

Facts

Facts about CEIL
Name
CEIL
Hash
0x11E019C8F43ACC8A
Namespace
Returns
int
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x11E019C8F43ACC8A, -- CEIL
  0.0, -- float value
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x11E019C8F43ACC8A", // CEIL
  0.0, // float value
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x11E019C8F43ACC8A, // CEIL
  0.0f // float value
);
All BUILTIN natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.