FT_E2D

FT_E2D()
 Convert scientific notation string to a decimal
------------------------------------------------------------------------------

 Syntax

            FT_E2D( <cNumE> )  -> <nDec>

 Arguments

                <cNumE>   Scientific notation string to convert

 Returns

                <nDec>    Decimal number

 Description

                Given a string in the format  x.yEz, the decimal
                equivalent is returned.

 Examples

                ? FT_E2D( "1.23E1" )
                  -> 12.3

                ? FT_E2D( "-1.235E1" )
                  -> -12.35

                ? ft_d2e( "5.43E-6" )
                  -> 0.0000543

 Source: E2D.PRG

 Author: Gary Baren

See Also: FT_D2E()

FT_D2E

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()