标签: python logging
import math a = math.pow(2, 29) b = math.log(536870912.0, 2) print("a=%s, b=%s"%(a, b)) //a=536870912.0, b=29.000000000000004
为什么log2(a)不等于29.0 ????