calc: add FMOD

This commit is contained in:
Michael Davidsaver
2022-03-28 11:37:57 -07:00
parent 9c0c486111
commit a6afef4850
7 changed files with 23 additions and 1 deletions

View File

@@ -298,7 +298,7 @@ MAIN(epicsCalcTest)
const double a=1.0, b=2.0, c=3.0, d=4.0, e=5.0, f=6.0,
g=7.0, h=8.0, i=9.0, j=10.0, k=11.0, l=12.0;
testPlan(630);
testPlan(635);
/* LITERAL_OPERAND elements */
testExpr(0);
@@ -370,6 +370,11 @@ MAIN(epicsCalcTest)
testExpr(cosh(0.5));
testExpr(exp(1.));
testExpr(floor(1.5));
testExpr(fmod(1.5, 1.0));
testExpr(fmod(-1.5, 1.0));
testExpr(fmod(1.5, -1.0));
testExpr(fmod(-1.5, -1.0));
testExpr(fmod(1.5, 0.0));
testExpr(finite(0.));
testExpr(finite(Inf));