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].
Decimal Object->scalb(Decimal Value)
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
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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments