Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
6995 Tampilan

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.

Avatar
Buang
Jawaban Terbai

Hi,

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

Avatar
Buang
Penulis

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

Post Terkait Replies Tampilan Aktivitas
5
Nov 16
11378
3
Mar 15
8690
2
Des 24
2586
1
Nov 22
6720
1
Mar 15
4786