Returns the remainder from the division of the first argument by the second argument, fuzzed to avoid most unexpected floating-point results.
Category: | Mathematical |
Returned data type: | DOUBLE |
specifies any valid SQL expression that evaluates to a numeric value. This argument specifies the dividend.
Data type | DOUBLE |
See | <sql-expression> |
FedSQL Expressions |
specifies any valid SQL expression that evaluates to a numeric value. This argument specifies the divisor.
Restriction | expression-2 cannot be 0 |
Data type | DOUBLE |
See | <sql-expression> |
FedSQL Expressions |
Statements
|
Results
|
---|---|
select mod(10,3); |
1 |
select mod(.3,-.1); |
0.1 |
select mod(1.7,.1); |
0.1 |
select mod(.9,.3); |
5.55E-17 |