Subject Re: Modulus Command
Author csswa
Add this udf declaration to your db...

DECLARE EXTERNAL FUNCTION mod
INTEGER, INTEGER
RETURNS DOUBLE PRECISION BY VALUE
ENTRY_POINT 'IB_UDF_mod' MODULE_NAME 'ib_udf';

(ib_udf.dll should be in your installation 'udf' folder) and from
then on call it e.g. with mod(foo_field1, foo_field2) or in your
example mod(200, 60).

Regards,
Andrew Ferguson




--- In ib-support@y..., "apatri2000" <apatri@i...> wrote:
> Hi All.
>
> I'd like to know what is the Firebird's command to perform MODULUS.
>
> Eg: 200 modulus 60 = 20.
>
> TIA
> Tony