1
-
2
1
Title: A Function for testing approximate equality
3
2
Version: $Revision$
4
3
Last-Modified: $Date$
@@ -9,6 +8,7 @@ Content-Type: text/x-rst
9
8
Created: 20-Jan-2015
10
9
Python-Version: 3.5
11
10
Post-History:
11
+ Resolution: https://mail.python.org/pipermail/python-dev/2015-February/138598.html
12
12
13
13
14
14
Abstract
@@ -113,21 +113,21 @@ The primary use-case is expected to be floating point numbers.
113
113
However, users may want to compare other numeric types similarly. In
114
114
theory, it should work for any type that supports ``abs()``,
115
115
multiplication, comparisons, and subtraction. However, the implimentation
116
- in teh math module is written in C, and thus can not (easily) use python's
116
+ in the math module is written in C, and thus can not (easily) use python's
117
117
duck typing. Rather, the values passed into the funciton will be converted
118
118
to the float type before the calculation is performed. Passing in types
119
119
(or values) that cannot be converted to floats will raise an appropirate
120
120
Exception (TypeError, ValueError, or OverflowError).
121
121
122
- The code will be tested to accommodate at least some vlues of these types:
122
+ The code will be tested to accommodate at least some values of these types:
123
123
124
124
* ``Decimal``
125
125
126
126
* ``int``
127
127
128
128
* ``Fraction``
129
129
130
- * ``complex``: For complex, a compmanion function will be added to the
130
+ * ``complex``: For complex, a companion function will be added to the
131
131
``cmath`` module. In ``cmath.isclose()``, the tolerances are specified
132
132
as floats, and the absolute value of the complex values
133
133
will be used for scaling and comparison. If a complex tolerance is
@@ -645,4 +645,4 @@ This document has been placed in the public domain.
645
645
indent-tabs-mode: nil
646
646
sentence-end-double-space: t
647
647
fill-column: 70
648
- coding: utf-8
648
+ coding: utf-8
0 commit comments