ascot diagnostics

A9421

Warning: {value} is a number here, implicitly converted to the string “{value}”

The action of $ZSTRIP or the format of $FNUMBER is a number here, such as 2. IRIS compiles the call and converts the number to the string "2" when it runs. No number is a valid action or format, so IRIS raises <FUNCTION>. Write the action or format as a quoted string. $FNUMBER takes the number of decimal places as its third argument, $FNUMBER(value, "", 2).

IRIS compiles the example, and do ##class(Demo.NumberImplicitlyConvertedToString).Amount(1234.5) raises <FUNCTION> when it runs.

Class Demo.NumberImplicitlyConvertedToString
{

ClassMethod Amount(value As %Numeric) As %String
{
    Quit $FNUMBER(value, 2) //! A9421 A7895
}

}

All diagnostics