Im using the iReport1.3.3 tool to create a pdf and xls template. My problem is the following expression,
($V{strloanNo}).divide($V{loanCalculation})
I need to separate both variables, but I am not getting the expected result. it displays a "zero" value.
any idea guys?
$V{x}.divide( $V{y} )
This works for me.
It looks like your variables are Null.
Be sure to set the expression of the original value in the properties of the variables.
I set both of mine below.
new java.math.BigDecimal(10.0)
Guess you can try this -
$V{strloanNo}.floatValue()/$V{loanCalculation}.floatValue()
$F{Attribute_a}.divide($F{Attribute_b})
java.math.BigDecimal
b ,
b
Source: https://habr.com/ru/post/1764908/More articles:G ++ Version Compatibility - c ++Параметры .NET и MySql, переменные NULL AddWithValue, как избежать проверки нулей - nullSprings SimpleUrlHandlerMapping does not display my controller - javaThe percentage line consists of the total amount, where each line is determined by the group according to the article - sqlSQL convert int in time - sqlHow to create id field in SQL Server? - sql-serverC # get current connection in transaction TransactionScope - c #ASP.NET MVC Session Timeout and TempData - asp.net-mvc-2Why can't I call my exported routine in my Perl program? - module'Null or empty full-text predicate when executing a storage procedure from an associated control - sql-serverAll Articles