Overview | Statement List


Convert Real Number to Character String

Synopsis

FSTRL(n)

Description

Converts a real number into a character string. The maximum number of characters which this function can return is 30, including the decimal point and minus sign.

The 30 character limit is set so that you can use the string in the MESSG statement directly (MESSG has a limit of 60 characters per line). For example:

MESSG/'I = ' + FSTRL(i)

The resulting string has a leading zero when the number is less than one, but greater than negative one.

You may use &DECPL to control the number of decimal places that appear to the right of the decimal point. The default number of decimal places is 4 (if &DECPL is not used).

NOTE: Please note the following items:

Parameters

Parameter

Description

n

Real number which is to be converted to a character string. This function returns 30 characters (including the decimal point and minus sign).

 


Copyright ©2015 ºú¾ýNX¶þ´Î¿ª·¢¹ÙÍø£¨www.UGapi.com£© QQ:85585969 All Rights Reserved.