Built-inClient

sqrt

SQRT0x71D93B57D07F9804

The GTA V native SQRT of the BUILTIN namespace, as LS:MP client scripts call it: the global function sqrt, in JavaScript and in Lua.

SignatureJavaScript
sqrt(value: number): number
SignatureLua
sqrt(value: number): number

Usage

JavaScript
const result = sqrt(value);
Lua
local result = sqrt(value)

Parameters

ParameterTypeJavaScriptLua
valuefloatnumbernumber

Returns

float JavaScript number, Lua number

Reference

Namespace
Built-in BUILTIN
In the game
float SQRT(float value)
Hash
0x71D93B57D07F9804

Open in the interactive natives reference