Oracle小数点问题 [英] Oracle Decimal point problem

查看:199
本文介绍了Oracle小数点问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的先生,
我有一个数据库,其中一个数字coloum的值为0.98.
但在网页上显示为0.9777777777777777777777.但我只想输入2位数字.
任何人都告诉我这是什么问题.如果有人给我存储过程代码以填充小数点后最多2位的值.或者在C#代码中更改它???

Dear Sir,
I have oracle database in which one numeric coloum have the value 0.98.
but in web page this show to 0.9777777777777777777777. but i want value only 2 digit.
Any body tell me whats issue this. If any body give me stored procedure code to fill value upto 2 digit after the decimal point.or this to change in C# code??

推荐答案

>
http://www.techonthenet.com/oracle/functions/round_nbr.php [ ^ ]
You can try round
http://www.techonthenet.com/oracle/functions/round_nbr.php[^]


这篇关于Oracle小数点问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆