summaryrefslogtreecommitdiff
path: root/src/py_balance.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/py_balance.cc')
-rw-r--r--src/py_balance.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/py_balance.cc b/src/py_balance.cc
index 47cd7fc9..cf174a5e 100644
--- a/src/py_balance.cc
+++ b/src/py_balance.cc
@@ -182,6 +182,10 @@ void export_balance()
.def("in_place_round", &balance_t::in_place_round,
return_internal_reference<>())
+ .def("__round__", &balance_t::roundto)
+ .def("in_place_roundto", &balance_t::in_place_roundto,
+ return_internal_reference<>())
+
.def("truncated", &balance_t::truncated)
.def("in_place_truncate", &balance_t::in_place_truncate,
return_internal_reference<>())