-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Truncate floating point docstring examples to 8 decimal places (#…
…1726) * Truncate all floating point values in docstring examples to 8 decimal places to harden the docstrings against small changes in backends, operating systems, and code that could cause fluctuations beyond a reasonable level of interest for final results. The choice of 8 decimal places is to match the default number of decimal places for reprs for most array libraries. - Use doctest's ELLIPSIS option to truncate floating point numbers - c.f. https://docs.python.org/3/library/doctest.html#doctest.ELLIPSIS
- Loading branch information
1 parent
1bc425f
commit ce70574
Showing
5 changed files
with
18 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters