Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Nanforum Toolkit v2.1 Reference Guide - <b>ft_d2e()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FT_D2E()
 Convert decimal to scientific notation
------------------------------------------------------------------------------

 Syntax

            FT_D2E( <nDec>, <nPrecision> )  -> <cNumE>

 Arguments

                <nDec>         Decimal number to convert

                <nPrecision>   Number of decimal places in result.
                     Defaults to 6 decimal places.

 Returns

                <cNumE>        A string representing a number in
                     scientific notation

 Description

                Given a decimal number and the desired precision,
                a string representing the equivalent in scientific
                notation is returned.

 Examples

                ? FT_D2E( 12.345, 2 )
                  -> 1.23E1

                ? FT_D2E( -12.345, 3 )
                  -> -1.235E1

                ? FT_D2E( 0.00000543, 2 )
                  -> 5.43E-6

 Source: D2E.PRG

 Author: Gary Baren

See Also: FT_E2D()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson