Difference between revisions of "Sqr"
From Mesham
Jump to navigationJump to search (Created page with '== Overview == This sqr[n] function will return the result of squaring ''n''. * '''Pass:''' An integer to square * '''Returns:''' An integer representing the squared result ==…') |
m (5 revisions imported) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Overview == | == Overview == | ||
− | This sqr | + | This sqr(d) function will return the result of squaring ''d''. |
− | * '''Pass:''' | + | * '''Pass:''' A [[Double]] to square |
− | * '''Returns:''' | + | * '''Returns:''' A [[Double]] representing the squared result |
== Example == | == Example == | ||
− | var a:=sqr | + | #include <maths.h> |
+ | |||
+ | function void main() { | ||
+ | var a:=sqr(3.45); | ||
+ | }; | ||
+ | |||
+ | ''Since: Version 0.41b'' | ||
[[Category:Function Library]] | [[Category:Function Library]] | ||
[[Category:Maths Functions]] | [[Category:Maths Functions]] |