meta data for this page
  •  

F_MODULO

compatibility FreeUDFLib, FreeUDFLibC, FreeUDFLib AvERP, GrUDF

input/output-compatibility to rFunc (MOD)

Entrypoint f_modulo compatible with UTF-8


Inputs/Outputs

   Input      INTEGER     dividend (the number, which will be divided)
              INTEGER     divisor (the number, by which one divides)
   Output     INTEGER     Modulo (Rest of division of two integers) from parameter 1 divided through 
                          parameter 2

Syntax

   TestSQL
   SELECT 2 AS ISCORRECT, F_MODULO(5, 3) FROM RDB$DATABASE;
   SELECT 0 AS ISCORRECT, F_MODULO(6, 3) FROM RDB$DATABASE;
   SELECT NULL AS ISCORRECT, F_MODULO(NULL, NULL) FROM RDB$DATABASE;