Lasso Soft Inc. > Home

[ decimal->hypot ]

Method

Returns the length of the hypotenuse of a right-angled triangle, where the two legs that form the right angle are the decimal object and the decimal parameter.

  • Syntax
Decimal Object->hypot(Decimal Value)
Examples
  • Beginner

To return the hypotenuse of a right triangle:

Use the [decimal->hypot] method. The following example returns the hypotenuse of a right triangle, given the two lengths of the legs of the triangle that form the right angle as the decimal object and decimal parameter.

Code

3.0->hypot(4.0)

Result

5.000000

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft