mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-10 14:08:09 -05:00
More precise range for NaN in fixed-point output.
This commit is contained in:
@@ -4383,7 +4383,7 @@ class cfix(_number, _structure):
|
||||
@vectorize
|
||||
def print_plain(self):
|
||||
""" Clear fixed-point output. """
|
||||
nan = abs(self.v) >> (self.k - 1)
|
||||
nan = (self.v < 0).if_else(-self.v - 1, self.v) >> (self.k - 1)
|
||||
print_float_plain(cint.conv(self.v), cint(-self.f), \
|
||||
cint(0), cint(0), nan)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user