Quantcast
Viewing all articles
Browse latest Browse all 13

SQUARE – Math Functions

SQUARE () function returns the square of a float expression given in the function argument. The return type of this function is float.

Image may be NSFW.
Clik here to view.
\square
is a geometry symbol to denotes square.

Syntax

SQUARE ( float expression )

Example

–Square a positive number
select square (3)
Output: 9
 
–Square a negative number
select square (-3)
Output: 9
 
–Square a decimal number
select square (0.25)
Output: 0.0625
 

Square of a value x can be represented  as (x * x). So, we can also use this method in our program. Built-in functions are useful to developers to build application easier and more readable.

Thanks for Reading.


Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 13

Trending Articles