CT_CTOF

 CTOF()
 Converts a special 8-byte string into a floating point number
------------------------------------------------------------------------------
 Syntax

     CTOF(<cFloatingPointNumber>) --> nFloatingPointNumber

 Argument

     <cFloatingPointNumber>  Designates an 8-byte character string that
     contains a Clipper number in the 64-bit floating point format.

 Returns

     CTOF() returns the number that corresponds in the passed string.

 Description

     Character strings created with FTOC() or XTOC() are changed into
     Clipper numbers.  Note that when you use XTOC(), character strings or
     portions of character strings, can be switched back, if they have been
     displayed as Clipper floating point numbers.

 Examples

     .  Change a number and then change it back:

        CTOF(FTOC(1234.55))        // Result:  1234.55

     .  This also works for XTOC():

        ? CTOF(XTOC(1234.55))      // Result:  1234.55

See Also: FTOC() XTOC()



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.