Difference between revisions of "Sqr"

From Mesham
Jump to navigationJump to search
m
Line 9: Line 9:
  
 
  #include <maths.h>
 
  #include <maths.h>
  var a:=sqr(3.45);
+
   
 +
function void main() {
 +
    var a:=sqr(3.45);
 +
};
  
 
''Since: Version 0.41b''
 
''Since: Version 0.41b''

Revision as of 14:39, 15 April 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>

function void main() {
   var a:=sqr(3.45);
};

Since: Version 0.41b