STRNUM

Purpose:

Converts a number to a string.

Syntax:

STRNUM(num)

num

-

A real to convert to a string.

Returns:

A string.

Example:

strcat("The number ", strnum(11), "is prime")

 

returns: The number 11 is prime.

Example:

W1: 1..100

strcat("The mean value is ", strnum(mean(W1)))

 

results in: The mean value is 50.5.

Example:

strcat("The max to min difference is ", strnum(max(W1) - min(W1)))

 

displays: The max to min difference is 99.0.

Remarks:

STRNUM is a simple strinf to number convertor - think of it as "stringify a number".

 

See SPRINTF for a numeric conversion function offering more formatting options.

 

See NUM2STR to convert a real or series to a string with optional formatting.

See Also:

NUM2STR

NUMSTR

SPRINTF

STRCAT