iReport的變數相除

FAQ Jasper/iReport – Club d’entraide des développeurs francophones

<code id="contenuCoded0e843" class="contenuCode">除法, 四捨五入<br />$F<code class="java_operator">{</code>COUT_PRODUIT<code class="java_operator">}</code>.<code class="java_function">divide</code>( $V<code class="java_operator">{</code>TOTAL_COUT<code class="java_operator">}</code>, BigDecimal.ROUND_DOWN )<br /></code></pre><pre><code id="contenuCoded0e864" class="contenuCode">$F<code class="java_operator">{</code>COUT_PRODUIT<code class="java_operator">}</code><code class="java_operator">/</code>$V<code class="java_operator">{</code>TOTAL_COUT<code class="java_operator">}<br /></code></code><code id="contenuCoded0e1389" class="contenuCode"><code class="java_literal1">"</code><code class="java_literal1">20</code><code class="java_literal1">"</code> <code class="java_operator">+</code> Integer.<code class="java_function">toString</code>(<code class="java_keyword1">new</code> <code class="java_function">Date</code>().<code class="java_function">getYear</code>() <code class="java_operator">-</code> <code class="java_digit">1</code>).<code class="java_function">substring</code>( <code class="java_digit">1</code>, <code class="java_digit">3</code> ) <code class="java_operator">+</code> <code class="java_literal1">"</code><code class="java_literal1">-</code><code class="java_literal1">"</code> <code class="java_operator">+</code> <code class="java_literal1">"</code><code class="java_literal1">20</code><code class="java_literal1">"</code> <code class="java_operator">+</code> Integer.<code class="java_function">toString</code>(<code class="java_keyword1">new</code> <code class="java_function">Date</code>().<code class="java_function">getYear</code>()).<code class="java_function">substring</code>( <code class="java_digit">1</code>, <code class="java_digit">3</code> )<br /><br /></code><br />

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *

What is 14 + 13 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)