Floor function gave different answers for the same number

后端 未结 0 1489
别跟我提以往
别跟我提以往 2020-12-15 17:07
math.floor(10**62 * (1-3/(10**31)))
output: 100000000000000003502199685943161173046080317798311825604870144

math.floor(10**62-3*(10**31))
output:9999999999999999999         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题