 |
 |
 |
 |
| Name |
|
sq() |
 |
|
|
| Examples |
|
float a = sq(1); // Sets a to 1
float b = sq(-5); // Sets b to 25
float c = sq(9); // Sets c to 81
|
|
|
| Description |
|
Squares a number (multiplies a number by itself). The result is always a positive number, as multiplying two negative numbers always yields a positive result. For example, -1 * -1 = 1. |
 |
|
|
| Syntax |
|
sq(value)
|
 |
|
|
| Parameters |
|
|
 |
|
|
| Returns |
|
float |
 |
|
|
| Usage |
|
Web & Application |
 |
|
|
| Related |
|
sqrt() |
|