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



Click to Enlarge


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

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250