数据库值为0.2,页面读出来为.2。
[img]http://dl.iteye.com/upload/attachment/0074/5429/2448a7f0-7f07-346b-b2e6-a6c0b8044e87.jpg[/img]
在数据库中进行格式转化:
select to_char(a.value,'fm9990.0000') from p_index_value a
9:该位有数字的话,显示;无数字的话,不显示
0:该位不管是否有数字,都显示
例如:value为2.1334,fm00.00=02.13;fm90.00=2.13
[img]http://dl.iteye.com/upload/attachment/0074/5429/2448a7f0-7f07-346b-b2e6-a6c0b8044e87.jpg[/img]
在数据库中进行格式转化:
select to_char(a.value,'fm9990.0000') from p_index_value a
9:该位有数字的话,显示;无数字的话,不显示
0:该位不管是否有数字,都显示
例如:value为2.1334,fm00.00=02.13;fm90.00=2.13