Lasso Soft Inc. > Home

[ Scientific ]


The [scientific] method formats a number in scientific notation.

The method requires one parameter, the decimal value to be formatted. 

Note: Use the [scientific->value] method to perform calculations on numbers cast as scientific

  • Syntax
  • Methods
  • Traits
scientific( value )
Has methods:
  • Beginner

Format a number in scientific notation

Use the [scientific] method. This example shows the longhand and scientific notation representations for various common numbers.


var( constants = map( 'c' = decimal(299792458),
                      'G' = decimal(0.0000000000667300)) )

$constants->forEachPair => {^
     #1->first+' = '+#1->second+' = '+scientific(#1->second)+'\n'


c = 299792458.000000 = 2.99792458E8
G = 0.000000 = 6.673E-11

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