Subject Re: Modulus Command
Author apatri2000
--- In ib-support@y..., "csswa" <csswa@y...> wrote:
> 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
>
Great Thanks, Andrew.

Tony
>
> --- 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