package Ġcom . ion spin . kotlin . b ignum . decimal Ċ Ċ import Ġkotlin . test . assertEquals Ċ import Ġorg . junit . Test Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠU gl jes a ĠJ ovan ov ic Ċ Ġ* Ġug lj es a . j ovan ov ic @ ion spin . com Ċ Ġ* Ġon Ġ 0 9 - May - 2 0 2 1 Ċ Ġ*/ Ċ class ĠReport ed Issues Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġmultiplication Precision Loss () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġa Ġ= Ġ" 5 . 6 1 ". to BigDecimal (). round To Digit Position After Decimal Point ( 2 , ĠRound ingMode . ROUND _ HALF _ AW AY _ FROM _ ZERO ) ĊĠĠĠĠĠĠĠ Ġval Ġb Ġ= Ġ" 2 . 9 5 ". to BigDecimal (). round To Digit Position After Decimal Point ( 2 , ĠRound ingMode . ROUND _ HALF _ AW AY _ FROM _ ZERO ) ĊĠĠĠĠĠĠĠ Ġval Ġa Java Ġ= Ġa . to Java BigDecimal () ĊĠĠĠĠĠĠĠ Ġval Ġb Java Ġ= Ġb . to Java BigDecimal () ĊĠĠĠĠĠĠĠ Ġval Ġjava Res Ġ= Ġa Java . multiply ( b Java ). set Scale ( 2 , Ġjava . math . Round ingMode . HALF _ UP ) ĊĠĠĠĠĠĠĠ Ġval Ġres Ġ= Ġa . multiply ( b ). round To Digit Position After Decimal Point ( 2 , ĠRound ingMode . ROUND _ HALF _ AW AY _ FROM _ ZERO ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( res . toString Expanded (), Ġjava Res . to Plain String ()) ĊĠĠĠ Ġ} Ċ } Ċ