import numpy as np
def get_fix(xs):
res = [np.floor(e) if e >= 0 else np.ceil(e) for e in xs]
return res
xs = [3.14, -2.718]
res = get_fix(xs)
print(res)
aW1wb3J0IG51bXB5IGFzIG5wCgoKZGVmIGdldF9maXgoeHMpOgogICAgcmVzID0gW25wLmZsb29yKGUpIGlmIGUgPj0gMCBlbHNlIG5wLmNlaWwoZSkgZm9yIGUgaW4geHNdCiAgICByZXR1cm4gcmVzCgp4cyA9IFszLjE0LCAtMi43MThdCnJlcyA9IGdldF9maXgoeHMpCnByaW50KHJlcykK