Error: ‘{format}’ is not a valid $FNUMBER format: {reason}
$FNUMBER’s format is a string of the codes + - , . D E G L N O P T, in any combination
but the pairs IRIS forbids (such as , with .); this constant format has a character
that is no code, or such a pair. IRIS compiles the call and raises <FUNCTION> when it
runs. 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
}
}