Help

2

How to round a number in qweb report?

Avatar
Abdullah Sofan

For example, When I run this code:         <p><t t-esc="6.2/9"/></p>

 

I get this:                                               <p>0.688888888889</p>

 

How can I make it look like this:            <p>0.69</p>   

Avatar
Discard
1 Answer
5
Avatar
Sajin Aziz
Best Answer

<p><t t-esc="round(6.2/9,2)"/></p>

2 Comments
Avatar
Discard
Avatar
Abdullah Sofan
-

Thank you Sajin. Where can I find this information from????

Avatar
Abdullah Sofan
-

You have provided me with a lot of help with many of my questions. I appreciate it. Where do you work?