Lasso Soft Inc. > Home

[ scientific->VALUE ]

Method

The [scientific->value] returns the numeric value of a scientific typed object.

  • Syntax
scientific->value
Examples
  • Beginner

Use a scientific value in a calculation.

This example shows the use of the [scientific->value] method to perform a calculation using a number which has been converted to the scientific type for display formatting.

Code

var( c = scientific(decimal(299792458)),
        'au' = decimal(149597870700) )

'The Speed of light is '+$c+' m/s<sup>2</sup>.

This means it takes approximately '+(($au/$c->value ) /60)+' minutes for light from the sun to reach the earth.'

Result

The Speed of light is 2.99792458E8 m/s2.

This means it takes approximately 8.316746 minutes for light from the sun to reach the earth.

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