Sqr: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
(Created page with "SQR(''number'') '''Description''' SQR returns a double-precision value representing the square root of a number. The required parameter, ''number'', is any valid numeric exp...")
 
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
SQR(''number'')
''This function is for BASIC compatibility. It is not available in pure JavaScript projects.''  


'''Description'''
Sqr(''number'')


SQR returns a double-precision value representing the square root of a number. The required parameter, ''number'', is any valid numeric expression greater than or equal to zero.
== Description ==


'''Example'''
Sqr returns a double-precision value representing the square root of a number. The required parameter, ''number'', is any valid numeric expression greater than or equal to zero.
 
== Example (Basic) ==


<pre>
<pre>
REM SQR Example
Rem Sqr Example
'SQR calculates square root of a number
'Sqr calculates square root of a number
PRINT "The square root of 69 is " & SQR(69)
Print "The square root of 69 is " & Sqr(69)
</pre>
</pre>


'''Output'''
== Output ==


<pre>
<pre>
The square root of 69 is 8.30662386291807
The square root of 69 is 8.30662386291807
</pre>
</pre>
[[Category:Language Reference]]
[[Category:Math]]
[[Category:BASIC Functions]]

Latest revision as of 15:36, 25 March 2019

This function is for BASIC compatibility. It is not available in pure JavaScript projects.

Sqr(number)

Description

Sqr returns a double-precision value representing the square root of a number. The required parameter, number, is any valid numeric expression greater than or equal to zero.

Example (Basic)

Rem Sqr Example
'Sqr calculates square root of a number
Print "The square root of 69 is " & Sqr(69)

Output

The square root of 69 is 8.30662386291807