浮点型取余
摘要:
浮点数取余方法:x-(math.floor(x/y)*y)>>> import math>>> x=9.7;y=3.1>>> x-(math.floor (x/y)*y)0.3999999999999986 阅读全文
posted @ 2014-09-17 21:29 Mr.风的影子 阅读(482) 评论(0) 推荐(0)
posted @ 2014-09-17 21:29 Mr.风的影子 阅读(482) 评论(0) 推荐(0)
posted @ 2014-09-17 13:11 Mr.风的影子 阅读(391) 评论(0) 推荐(0)
posted @ 2014-09-17 10:55 Mr.风的影子 阅读(75667) 评论(0) 推荐(5)