有什么办法围捕十进制值在.net其最近的0.05的价值?
Is there any way to round up decimal value to its nearest 0.05 value in .Net?
例如:
7.125 - > 7.15
7.125 -> 7.15
6.66 - > 6.7
6.66 -> 6.7
如果它现在可谁能给我提供的算法中?
If its now available can anyone provide me the algo?
怎么样:
Math.Ceiling(myValue * 20) / 20
上一篇:XNA是否有效替代托管DirectX?有效、XNA、DirectX
下一篇:有什么是prevents的Response.Redirect工作try-catch块里面?里面、工作、Response、prevents