ascot diagnostics

A9421

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

$ZSTRIP’s action and $FNUMBER’s format are strings with a grammar of their own, and this one is a bare number, which IRIS turns into its string form when the call runs. No number spells a valid action or format, so A3286 or A7895 comes with this and IRIS raises <FUNCTION>; write the action or format as a quoted string.

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