diff options
Diffstat (limited to 'src/py_value.cc')
-rw-r--r-- | src/py_value.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/py_value.cc b/src/py_value.cc index 52597c9a..9296217f 100644 --- a/src/py_value.cc +++ b/src/py_value.cc @@ -251,6 +251,8 @@ void export_value() .def("rounded", &value_t::rounded) .def("in_place_round", &value_t::in_place_round) + .def("__round__", &value_t::roundto) + .def("in_place_roundto", &value_t::in_place_roundto) .def("truncated", &value_t::truncated) .def("in_place_truncate", &value_t::in_place_truncate) .def("floored", &value_t::floored) |