コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
20912 ビュー

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>   

アバター
破棄
最善の回答

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

アバター
破棄
著作者

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

著作者

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

Still works in 14.0!