math.h (sqrt / pow)
Math functions.
Syntax
sqrt(x) (#include <math.h>)
Description
sqrt for square root, pow for exponentiation. Requires math.h. Result is a double (printed with %f).
Example
Loading editor…
Expected output
12.0 1024.0
When to use?
Geometry, exponential calculations.