diff options
author | John Wiegley <johnw@newartisans.com> | 2007-04-15 12:55:22 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:35:33 -0400 |
commit | b27b34a76fa16fcb96632a5bf245f3876183c479 (patch) | |
tree | fe386b51289569218b776e0d7453b161f071db70 /py_amount.cc | |
parent | b307f741c493652d64a6dde1df424c07eb698cb4 (diff) | |
download | fork-ledger-b27b34a76fa16fcb96632a5bf245f3876183c479.tar.gz fork-ledger-b27b34a76fa16fcb96632a5bf245f3876183c479.tar.bz2 fork-ledger-b27b34a76fa16fcb96632a5bf245f3876183c479.zip |
Added a reference to gdtoa, for doing expected conversion of double to amount.
Diffstat (limited to 'py_amount.cc')
-rw-r--r-- | py_amount.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/py_amount.cc b/py_amount.cc index c310bda2..d8f42762 100644 --- a/py_amount.cc +++ b/py_amount.cc @@ -59,34 +59,47 @@ void export_amount() .def(init<char *>()) .def(init<bool>()) .def(init<long>()) + .def(init<double>()) .def(self += self) .def(self += long()) + .def(self += double()) .def(self + self) .def(self + long()) .def(long() + self) + .def(self + double()) + .def(double() + self) .def(self -= self) .def(self -= long()) + .def(self -= double()) .def(self - self) .def(self - long()) .def(long() - self) + .def(self - double()) + .def(double() - self) .def(self *= self) .def(self *= long()) + .def(self *= double()) .def(self * self) .def(self * long()) .def(long() * self) + .def(self * double()) + .def(double() * self) .def(self /= self) .def(self /= long()) + .def(self /= double()) .def(self / self) .def(self / long()) .def(long() / self) + .def(self / double()) + .def(double() / self) .def(- self) |