From 9af691da57ff286c62ca96d12e473988c2bf7e6c Mon Sep 17 00:00:00 2001 From: Bill Zorn Date: Mon, 6 Aug 2018 16:39:16 -0700 Subject: [PATCH] fix name of rounding method --- sfpy/posit.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sfpy/posit.pyx b/sfpy/posit.pyx index 4fb76aa..7816613 100644 --- a/sfpy/posit.pyx +++ b/sfpy/posit.pyx @@ -73,7 +73,7 @@ cdef class Posit8: return Posit8.from_c_posit(f) def __round__(self): - return self.roundToInt() + return self.round() cpdef Posit8 add(self, Posit8 other): cdef cposit.posit8_t f = cposit.p8_add(self._c_posit, other._c_posit) @@ -407,7 +407,7 @@ cdef class Posit16: return Posit16.from_c_posit(f) def __round__(self): - return self.roundToInt() + return self.round() cpdef Posit16 add(self, Posit16 other): cdef cposit.posit16_t f = cposit.p16_add(self._c_posit, other._c_posit) -- 2.30.2