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 |
换类型时,常可以这样做的,+0.5确保正确性,有时int里要用pow之类函数时,也故意+0.5的,小技巧!In Reply To:Re:比较DOUBLE相等时要用int( X×1000+0.5) FT Posted by:smallbox at 2009-04-06 01:04:38 换类型时,常可以这样做的,+0.5确保正确性,有时int里要用pow之类函数时,也故意+0.5的,小技巧! Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator