Mercurial > hg > octave-nkf
view .hgsubstate @ 20584:0cefba1a1030
Make mod() and rem() Matlab compatible for corner cases (bug #45587).
* data.cc(Frem): Update docstring. Update and add BIST tests.
* data.cc(Fmod): Update docstring. Update and add BIST tests.
* lo-mappers.h: Add #include lo-ieee.h to get octave_NaN definition.
* lo-mappers.h(xrem): Return NaN if second input is 0. Always use signbit of
first input argument to decide sign of output.
* lo-mappers.h(xmod): Always use signbit of second input argument to decide
sign of output.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 22 Jul 2015 09:46:42 -0700 |
parents | 85d9cb769e8b |
children |