Topic: 关于精度的问题? |
Print this page |
1.关于精度的问题? | Copy to clipboard |
Posted by: 007ts Posted on: 2004-12-03 10:05 请问我想取一个double型的数的前几位有效数字,请问用什么方法? 谢谢了!!! |
2.Re:关于精度的问题? [Re: 007ts] | Copy to clipboard |
Posted by: ninky Posted on: 2004-12-03 17:00 Sorry ! there is no method to do like your saying as I know! |
3.Re:关于精度的问题? [Re: 007ts] | Copy to clipboard |
Posted by: 007ts Posted on: 2004-12-06 08:30 谢谢你的关注! 那请问有人知道用什么样的代码可以完成取几位有效数字的功能吗? |
4.Re:关于精度的问题? [Re: 007ts] | Copy to clipboard |
Posted by: dingligang Posted on: 2004-12-06 09:47 转成BigDecimal,可以设置精度和舍入方式,详细请参考API文档。 |
5.Re:关于精度的问题? [Re: 007ts] | Copy to clipboard |
Posted by: 007ts Posted on: 2004-12-06 13:25 万分感谢!我对你的敬仰有如滔滔江水连绵不绝,又如黄河泛滥一发不可收拾!!!!!!!!!!!! |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |