User Tools

Site Tools


syntax:functions:square

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
syntax:functions:square [2019/10/16 15:06] dmitrysyntax:functions:square [2021/08/11 15:36] (current) – [Examples] craigt
Line 1: Line 1:
-===== Square(number) =====+====== Square(number) =====
 +Category:  Number function
  
-The square of number.+\\  
 +=====Description===== 
 +This function returns the square of //number//.
  
- Example   Result  +\\  
-square(25 |  625 | +=====Arguments===== 
-square(- 10)  |  100 |+^Argument^Type^Description
 +|number|Number|The value to be squared (multiplied by itself).| 
 +\\  
 +**Return value type:**  Number 
 + 
 +\\  
 +=====Examples===== 
 + 
 +  square(2) //Returns 4 
 + 
 +  square(25) //Returns 625 
 + 
 +  square(-10) //Returns 100 
 + 
 +  square(12.4) //Returns 153.76 
 + 
 +\\  
 +===== See also ===== 
 +  * [[syntax:functions:sqrt|Sqrt(number)]] 
 +  * [[syntax:functions:pow|Pow(number, power)]]
  
-Note: keep in mind that EasyMorph doesn't support the unary minus in expressions - see Example 2 above. 
syntax/functions/square.1571252786.txt.gz · Last modified: 2019/10/16 15:06 by dmitry

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki