Next Previous Contents

71. string

Synopsis

Convert an object to a string representation.

Usage

Integer_Type string (obj)

Description

The string function may be used to convert an object obj of any type to a string representation. For example, string(12.34) returns "12.34".

Example

     define print_anything (anything)
     {
        message (string (anything));
     }
Notes

This function is not the same as typecasting to a String_Type using the typecast function.

See Also

typecast, sprintf, integer, char


Next Previous Contents