跳至內容
選單
此問題已被標幟
1 回覆
6902 瀏覽次數

Hi,

I create a report based a sql query. i want display all number in format : three digits after comma.

For example :

result of sql query salary=500.3

i want display in report PDF : 500.300

Thanks.

頭像
捨棄
最佳答案

Hi,

You can use: [[ '%0.4f' % result ]]

頭像
捨棄
作者

Thankyou very match. works now . Any doc about this formatting?

相關帖文 回覆 瀏覽次數 活動
5
11月 16
11281
3
3月 15
8594
2
12月 24
2390
1
11月 22
6296
1
3月 15
4721