Square root: Difference between revisions
Jump to navigation
Jump to search
imported>StDoodle mNo edit summary |
imported>StDoodle mNo edit summary |
||
Line 1: | Line 1: | ||
{{ | {{ | ||
#vardefine:name|square_root}}{{ | #vardefine:name|square_root}}{{ | ||
#vardefine:return_type| | #vardefine:return_type|float}}{{ | ||
FunctionPage| | FunctionPage| | ||
Line 10: | Line 10: | ||
name={{#var:name}}| | name={{#var:name}}| | ||
aggregate={{#var:aggregate}}| | aggregate={{#var:aggregate}}| | ||
return_type= | return_type={{#var:return_type}}| | ||
return_also={{#var:return_also}}| | return_also={{#var:return_also}}| | ||
parameter1={{Param|float|number}}| | parameter1={{Param|float|number}}| |
Revision as of 19:53, 10 March 2010
needs(code_samples);
Function Syntax
float square_root(float number )
- number is the number to find the root of
Returns the square root of the specified number. Note that it is possible supply an int type number as the parameter number, in which case it will be transparently converted to a float; the value returned will still be of float type (even if the int value would be equal, such as specifying 4 as number).