阅读背景:

我有个问题要把民意测验的结果四舍五入到100%

来源:互联网 

I am developing a poll using ruby, but the answer that i get is incorrect, i am looking for the answers that will results in 100% but my answers are sometimes 101% or 99% and i am sure is the rounding off of my floats but i just can get them right because without the rounding off the answers are very long floats. my code of calculating the results and displaying the results isI am developing a poll using ruby, but the answ




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: