FTOC()

FTOC()

Converts a floating point number into a special 8-byte string

Syntax

       FTOC(<nFloatingPointNumber>) --> cFloatingPointNumber

Arguments

<nFloatingPointNumber> Designate any Clipper number.

Returns

FTOC() return a string with the size of DOUBLE.

ATTENTION: different implementations or platforms of Harbour, they could produce different format in the string returned by FTOC().

Description

Harbour internal numbers in Floating Point are stored in data type DOUBLE. FTOC() returns these bits as an string. In this way, numbers con be saved more compactly.

Note

. The XTOC() function converts floating point numbers in the same way.

Example

       It is not useful to display the return value on the screen:
           NumberString  :=  FTOC(274711.335)      // 8 byte string

Platforms

All

Files

Source is ftoc.c, library is libct.

See also

CTOF(), XTOC()

Advertisements

2 responses to “FTOC()

  1. Pingback: Harbour All Functions – F | Viva Clipper !

  2. Pingback: Harbour Conversion Functions | Viva Clipper !

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s