Framework (
A-Z)
Reference for Wiring version 1.0 Build 0100+ If you have a previous version, use the reference included with your software. If see any errors or have any comments, let us know.
| Name |
sq() |
| Examples |
float a = sq(1);
float b = sq(-5);
float c = sq(9);
|
| 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 |
Application |
| Related |
sqrt()
|
Updated on July 07, 2011 11:09:02pm PDT