package Ġorg . ep ist atic . number Ċ Ċ import Ġjava . io .* Ċ import Ġorg . junit . Test Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ import Ġorg . assertj . core . data . Offset Ċ Ċ class ĠNumber Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġdouble Round To () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertThat ( 1 0 0 . 1 2 3 . round To ( 2 )). is Close To ( 1 0 0 . 1 2 , ĠOffset . offset ( 0 . 0 0 1 )) ĊĠĠĠĠĠĠĠ ĠassertThat ( 1 0 0 . 1 9 7 5 . round To ( 2 )). is Close To ( 1 0 0 . 2 0 , ĠOffset . offset ( 0 . 0 0 1 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġfloat Round To () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertThat ( 1 0 0 . 1 2 3 f . round To ( 2 )). is Close To ( 1 0 0 . 1 2 f , ĠOffset . offset ( 0 . 0 0 1 f )) ĊĠĠĠĠĠĠĠ ĠassertThat ( 1 0 0 . 1 9 7 5 f . round To ( 2 )). is Close To ( 1 0 0 . 2 0 f , ĠOffset . offset ( 0 . 0 0 1 f )) ĊĠĠĠ Ġ} Ċ Ċ } Ċ