Overview | Statement List | Example


转换实数字符串

Synopsis

FSTR(n)

Description

Converts a real number into a character string. The maximum number of characters which this function can return is eight, including the decimal point and minus sign. To return more than eight characters, use the FSTRL statement.

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.

NOTE: Please note the following items.

Parameters

Parameter

Description

n

Real number which is to be converted to a character string. This function returns a maximum of 8 characters (including the decimal point and minus sign). If you attempt to convert a real number which generates more than eight characters, then this command returns a string of nines (e.g. '9999999') which indicates an overflow error.


Copyright ©2015 胡君NX二次开发官网(www.UGapi.com) QQ:85585969 All Rights Reserved.