Every line of 'return value of trunc() in python' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
419 def __trunc__(self,*args): 420 """ __trunc__(x: Int64) -> Int64 """ 421 pass
210 def trunc(data): 211 """Compute element-wise trunc of data. 212 213 Parameters 214 ---------- 215 data : relay.Expr 216 The input data 217 218 Returns 219 ------- 220 result : relay.Expr 221 The computed result. 222 """ 223 return _make.trunc(data)
8 @singledispatch 9 def type_trunc(cast_type, val): 10 raise TypeError( 11 f"Type '{repr(cast_type)}' unsupported, cannot truncate type '{val}' " 12 f"of type '{repr(type(val))}'")
112 def trunc(x): 113 return Trunc(float(x))