diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-02-19 12:40:38 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-02-19 12:40:38 -0500 |
commit | 771a4335c707875e53349c5292e193744e852b37 (patch) | |
tree | d04763424658795dd6f288decbe39359db80b1e0 /mathfuncs_rcp.h | |
parent | b92e98bf8864e33e2531cfda5b65b1d7822e875f (diff) | |
download | vecmathlib-771a4335c707875e53349c5292e193744e852b37.zip vecmathlib-771a4335c707875e53349c5292e193744e852b37.tar.gz |
Add rint(), correct round()
Diffstat (limited to 'mathfuncs_rcp.h')
-rw-r--r-- | mathfuncs_rcp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mathfuncs_rcp.h b/mathfuncs_rcp.h index 99c516c..a7d7ba3 100644 --- a/mathfuncs_rcp.h +++ b/mathfuncs_rcp.h @@ -47,7 +47,7 @@ namespace vecmathlib { template<typename realvec_t> realvec_t mathfuncs<realvec_t>::vml_remainder(realvec_t x, realvec_t y) { - return x - round(x / y) * y; + return x - rint(x / y) * y; } template<typename realvec_t> |