|
Home » ASP Home » Math Home » CalcArea Function
A D V E R T I S E M E N T
Title |
CalcArea Function |
Description |
The CalcArea function calculates the area of objects. There are two required arguments: formula and values.
The formula argument must be a string and the values argument must be an array. The following chart displays the acceptable values of the formula and values argument:
formula argument (string) values argument (array) ------------------------------------------------------------------------ triangle array(0) = base array(1) = height
square array(0) = side
rectangle array(0) = side1 array(1) = side2
parallelogram array(0) = base array(1) = height
trapezoid array(0) = base1 array(1) = base2 array(2) = height
circle array(0) = radius
ellipse array(0) = radius1 array(1) = radius2
CalcArea always returns a double. |
Category |
ASP » Math |
Hits |
382768 |
Code |
Select and Copy the Code
|
|
|
Related Source Codes
A D V E R T I S E M E N T
|
Subscribe to SourceCodesWorld - Techies Talk |
New! Click here to Add your Code!
ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
Source Codes Home Page | |
|