var two = 0.2
var one = 0.1
var eight = 0.8
var six = 0.6
[two - one == one, eight - six == two]
结果是true, false
为什么two - one == one 是true?
为什么 0.2-0.1=0.1没有精度问题?
泛舟湖上清波郎朗
慕哥9229398
相关分类