Mercurial > octave-nkf
comparison scripts/general/num2str.m @ 20521:4bb41929286b
Deprecate bitmax.
* NEWS: Announce deprecation and replacement functions.
* scripts/deprecated/bitmax.m: New function. Add deprecation message to
docstring. Add deprecation warning to m-file.
* scripts/deprecated/module.mk: Add deprecated versions to build system.
* libinterp/corefcn/bitfcns.cc: Remove build-in function. Remove function
from docstrings.
* libinterp/corefcn/data.cc: Remove function from docstrings.
* scripts/general/bitcmp.m: Replace bitmax function calls with flintmax.
Remove function from docstrings.
* scripts/general/bitget.m: Replace bitmax function calls with flintmax.
Remove function from docstrings.
* scripts/general/bitset.m: Replace bitmax function calls with flintmax.
Remove function from docstrings.
* scripts/specfun/factor.m: Replace bitmax function calls with flintmax.
Remove function from docstrings.
* scripts/statistics/distributions/unidpdf.m: Remove function from docstrings.
* scripts/general/num2str.m: Replaced function in comment.
* doc/interpreter/doccheck/aspell-octave.en.pws: Remove functions from list.
* doc/interpreter/numbers.txi: Remove function from manual.
author | Kai T. Ohlhus <k.ohlhus@gmail.com> |
---|---|
date | Wed, 09 Sep 2015 18:43:52 +0200 |
parents | f357e076776f |
children |
comparison
equal
deleted
inserted
replaced
20520:f515bac7c7c1 | 20521:4bb41929286b |
---|---|
202 %!assert (num2str (complex (1, NaN)), "1+NaNi") | 202 %!assert (num2str (complex (1, NaN)), "1+NaNi") |
203 %!assert (num2str (NA), "NA") | 203 %!assert (num2str (NA), "NA") |
204 %!assert (num2str (complex (NA, 1)), "NA+1i") | 204 %!assert (num2str (complex (NA, 1)), "NA+1i") |
205 %!assert (num2str (complex (1, NA)), "1+NAi") | 205 %!assert (num2str (complex (1, NA)), "1+NAi") |
206 | 206 |
207 ## FIXME: Integers greater than bitmax() should be masked to show just | 207 ## FIXME: Integers greater than flintmax() - 1 should be masked to show just |
208 ## 16 digits of precision. | 208 ## 16 digits of precision. |
209 %!xtest | 209 %!xtest |
210 %! assert (num2str (1e23), "100000000000000000000000"); | 210 %! assert (num2str (1e23), "100000000000000000000000"); |
211 | 211 |
212 ## Test for bug #44864, extra rows generated from newlines in format | 212 ## Test for bug #44864, extra rows generated from newlines in format |