この記事の仲間です。 DBからぽんと取ったデータはBigInteger、こっちで比較しなきゃいけないデータはIntegerで困りましたね。 先に結論 assertEquals(BigInteger.valueOf(比べられるInteger), 比べるBigInteger); BigIntegerの方が桁数がでかいので、BigIntegerの方にあわせてあげる ...
In a previous blog post, I looked at the subtle handling required to handle double with BigDecimal. As I discussed in that post, using the BigDecimal(double) constructor rarely does what one would ...
現在アクセス不可の可能性がある結果が表示されています。
アクセス不可の結果を非表示にする