# tensorplay.functional.nextafter Source: https://www.tensorplay.cn/docs/generated/tensorplay.functional.nextafter.html ```python tensorplay.functional.nextafter(input, other, *, out=None) → Tensor ``` Return the next floating-point value after input towards other, elementwise. The shapes of input and other must be [broadcastable](/docs/notes/broadcasting.html#broadcasting-semantics). Parameters: - input ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor)) – the first input tensor - other ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor)) – the second input tensor Keyword Arguments: out ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor), optional) – the output tensor. Example: ``` >>> eps = tensorplay.finfo(tensorplay.float32).eps >>> tensorplay.nextafter(tensorplay.tensor([1.0, 2.0]), tensorplay.tensor([2.0, 1.0])) == tensorplay.tensor([eps + 1, 2 - eps]) tensor([True, True]) ```