MCPcopy Create free account
hub / github.com/Lauriat/funct / round_

Method round_

funct/Array.py:234–238  ·  view source on GitHub ↗

Rounds the Array in-place to the given number of decimals.

(self, d=0)

Source from the content-addressed store, hash-verified

232 return Array(a)
233
234 def round_(self, d=0):
235 """ Rounds the Array in-place to the given number of decimals. """
236 warn()
237 self[:] = Array(map(lambda e: round(e, d), self))
238 return self
239
240 def gt(self, e, inplace=False):
241 """ Returns x > y element-wise """

Callers 1

testMethod · 0.95

Calls 1

ArrayClass · 0.85

Tested by 1

testMethod · 0.76