ascot diagnostics

A7895

Error: ‘{format}’ is not a valid $FNUMBER format: {reason}

This constant $FNUMBER format holds a character that is no format code, or two codes that IRIS forbids together. The format codes are + - , . D E G L N O P T. The forbidden pairs are ,., ,N, .O, EG, LP, LT, PT, P+ and P-, in either order. IRIS compiles the call and raises <FUNCTION> when it runs, or <SYNTAX> when the pair includes P. Drop the stray character, or one code of the pair.

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

Class Demo.InvalidFNumberFormat
{

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

}

All diagnostics