How to convert this variable from string'a
to double
, for its subsequent multiplication and division.
net.homecredit.tools.Ft.formatCurrency( new Double( ($F{annuityProc} != null ? $F{annuityProc}.doubleValue() * ($F{creditAmount}.doubleValue()) : ($F{annuityTypeTxt} != null ? $F{annuityTypeTxt}.doubleValue() * ($F{creditAmount}.doubleValue()) : "Данных нет") /100 )) ,"#,##0.00")+" руб."
$F{annuityProc}
variable double
.$F{creditAmount}
variable double
.$F{annuityTypeTxt}
string
variable.
You need to multiply $F{annuityProc}
by $F{creditAmount}
and divide the amount by 100. If $F{annuityProc}
null
, then you must $F{annuityTypeTxt}
multiplied by $F{creditAmount}
and the amount divided by 100.
Error displays:
The method doubleValue () is undefined for the type String