Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
只要是浮点舍入,都有可能误差的In Reply To:不需要,最多才7个有效数字,算法对了用double就错不了的 Posted by:frkstyc at 2005-05-06 17:08:37 比如保留1位 2.049999999999999 就可能变成2.1或者2.0 就看数据中有没有这么巧的了 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator