package Ġissues Ċ Ċ object ĠIssue 1 0 0 Double Ġ{ Ċ ĉ @ Jvm Static Ġfun Ġmain ( args : ĠArray < String >) Ġ{ Ċĉ ĉ println (" Issue 1 0 0 Double . main :") Ċĉ ĉ println ("[ 1 ]") Ċĉ ĉ println ( 0 . 0 ) Ċĉ ĉ println ("[ 2 ]") Ċĉ ĉ println ( round Pixels 4 0 0 d ( 0 . 0 )) Ċĉ ĉ println ("[ 3 ]") Ċĉ ĉ println ( round Pixels 4 0 0 d ( 1 0 0 0 0 . 0 )) Ċĉ ĉ println ("[ 4 ]") Ċĉ ĉ println ( round Pixels 4 0 0 d ( 1 5 0 0 0 . 0 )) Ċĉ ĉ println ("[ 5 ]") ĊĊĉ ĉ println ("[ 2 f ]") Ċĉ ĉ println ( round Pixels 4 0 0 f ( 0 f )) Ċĉ ĉ println ("[ 3 f ]") Ċĉ ĉ println ( round Pixels 4 0 0 f ( 1 0 0 0 0 f )) Ċĉ ĉ println ("[ 4 f ]") Ċĉ ĉ println ( round Pixels 4 0 0 f ( 1 5 0 0 0 f )) Ċĉ ĉ println ("[ 5 f ]") Ċ ĉ } ĊĊ ĉ @ Jvm Static Ġprivate Ġfun Ġround Pixels 4 0 0 d ( pixels : ĠDouble ): ĠDouble Ġ= ĠMath . round ( pixels Ġ* Ġ 1 0 0 0 0 ). toDouble () Ġ/ Ġ 1 0 0 0 0 Ċ ĉ @ Jvm Static Ġprivate Ġfun Ġround Pixels 4 0 0 f ( pixels : ĠFloat ): ĠFloat Ġ= ĠMath . round ( pixels Ġ* Ġ 1 0 0 0 0 f ). toFloat () Ġ/ Ġ 1 0 0 0 0 f Ċ } Ċ