Python arithmetic with small numbers

前端 未结 7 1208
面向向阳花
面向向阳花 2021-01-18 00:59

I am getting the following unexpected result when I do arithmetic with small numbers in Python:

>>> sys.float_info
sys.float_info(max=1.797693134862         


        
7条回答
  •  伪装坚强ぢ
    2021-01-18 01:31

    First, let's review what epsilon really is in the return value of sys.float_info.

    Epsilon (or

提交回复
热议问题