summaryrefslogtreecommitdiff
path: root/src/py_amount.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-11 03:39:53 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-11 03:39:53 -0500
commitafe87280e091d4f094f068c5f21aecccd2d1831b (patch)
tree4be3e5c9bbcc9b450a6c0eea3f6b959daab22757 /src/py_amount.cc
parent4a4ff9d4b21e7ed94524314ca496bd17c84fc4ed (diff)
downloadfork-ledger-afe87280e091d4f094f068c5f21aecccd2d1831b.tar.gz
fork-ledger-afe87280e091d4f094f068c5f21aecccd2d1831b.tar.bz2
fork-ledger-afe87280e091d4f094f068c5f21aecccd2d1831b.zip
Added floored() and in_place_floor() methods
Diffstat (limited to 'src/py_amount.cc')
-rw-r--r--src/py_amount.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/py_amount.cc b/src/py_amount.cc
index 83f5dd29..b44f3716 100644
--- a/src/py_amount.cc
+++ b/src/py_amount.cc
@@ -220,6 +220,10 @@ internal precision."))
.def("in_place_truncate", &amount_t::in_place_truncate,
return_internal_reference<>())
+ .def("floored", &amount_t::floored)
+ .def("in_place_floor", &amount_t::in_place_floor,
+ return_internal_reference<>())
+
.def("unrounded", &amount_t::unrounded)
.def("in_place_unround", &amount_t::in_place_unround,
return_internal_reference<>())