From: Bill Zorn Date: Mon, 6 Aug 2018 23:39:16 +0000 (-0700) Subject: fix name of rounding method X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9af691da57ff286c62ca96d12e473988c2bf7e6c;p=sfpy.git fix name of rounding method --- 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)