Articles → Numpy → Nextafter Function In Numpy

Nextafter Function In Numpy






Next Floating-Point Value





Nextafter Function





Syntax


Numpy.nextafter(x1, x2)



Example


import numpy as np

print("Next smallest positive infinitesimal value after 1 is:", np.nextafter(1, 2))



Output


Picture showing the output of the nextafter function in numpy
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, June 12, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250