cfunc.rs

C Function/C Functions, Releases: AP 6.1

real to string conversion

Syntax

CPSTR * _CP_rs_(double number)

Description

converts a double floating point number into a CPSTR.

The precision of this function can be changed using the _CP_precision function.

Example

CPSTR * s = _CP_rs_(1.123);

_CP_print(s);

This example displays '1.123'.

See Also

Command Name Type Description
cfunc.introduction Introductory Overview
cfunc.precision C Function Pick/BASIC 'precision' functionality from C.
cfunc.sr C Function converts a CPSTR into a double float number.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.