Subject Re: [firebird-support] Value check that I don't now how to solve
Author Alex Taylor
Yes, You really don't need an UDF for this. Markus is right.

Do the following:

CREATE DOMAIN quarter_ AS
DECIMAL(18,2)
NOT NULL
CHECK ((VALUE*4)-CAST((VALUE*4) AS NUMERIC(18,0))=0)

Regards:Alex