Difference between revisions of "Sqr"

From Mesham
Jump to navigationJump to search
m
m
Line 8: Line 8:
 
== Example ==
 
== Example ==
  
 +
#include <maths.h>
 
  var a:=sqr(3.45);
 
  var a:=sqr(3.45);
  
 
[[Category:Function Library]]
 
[[Category:Function Library]]
 
[[Category:Maths Functions]]
 
[[Category:Maths Functions]]

Revision as of 12:54, 13 January 2013

Overview

This sqr(d) function will return the result of squaring d.

  • Pass: A double to square
  • Returns: A double representing the squared result

Example

#include <maths.h>
var a:=sqr(3.45);