Preskoči na vsebino

floatsqroot

opozorilo

This function starts with a lowercase letter.

Description

Calculates the square root of given value.

NameDescription
Float:valueThe value to calculate the square root of.

Returns

The square root of the input value, as a float.

Examples

new Float:sqroot = floatsqroot(25.0); // Returns 5.0, because 5x5 = 25

Notes

namig

This function raises a “domain” error if the input value is negative. You may use floatabs to get the absolute (positive) value.

  • floatpower: Raises given value to a power of exponent.
  • floatlog: Get the logarithm of the float value.