commit | 5a05364049a7b0c3eeee94fb7b77e6b41036b3ae | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Thu Jan 24 19:05:29 2008 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Thu Jan 24 19:05:29 2008 +0000 |
tree | 81c455f0e6117e62fdaa6df0da46aece07267095 | |
parent | 71dba4ccee4d90c7dfb970ab77fcba113c9aec5c [diff] [blame] |
Add support for trunc().
diff --git a/Lib/decimal.py b/Lib/decimal.py index e624a6d..eea9448 100644 --- a/Lib/decimal.py +++ b/Lib/decimal.py
@@ -1433,6 +1433,8 @@ else: return s*int(self._int[:self._exp] or '0') + __trunc__ = __int__ + def __long__(self): """Converts to a long.