Lasso Soft Inc. > Home

[ decimal->scalb ]

Method

Returns the load exponent of a radix-independent floating-point number, as represented in the expression x * (r to the power of n), where x is the decimal, n is a required decimal parameter and r is the radix of the machine's floating point arithmetic.

When r is 2, [decimal->scalb] is equivalent to [decimal->ldexp].

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

 

To return the load exponent of a radix-independent floating-point number:

Use the [decimal->scalb] method. The following example returns the load exponent of a radix-independent floating-point number.

Code

1.0->scalb(2.0)

Result

4.000000
Resources
  • Articles

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