Run
import math x = 3.1415 result = math.ulp(x) print('ulp(x) :', result)
Output