Here you can find the source of truncateAmount(BigDecimal value)
@Deprecated public static BigDecimal truncateAmount(BigDecimal value)
//package com.java2s; //License from project: Open Source License import java.math.BigDecimal; import java.math.RoundingMode; public class Main { /**/* ww w . ja va 2 s .co m*/ * @deprecated scales of BTCCNY, LTCCNY, LTCBTC are different. */ @Deprecated public static BigDecimal truncateAmount(BigDecimal value) { return value.setScale(3, RoundingMode.FLOOR).stripTrailingZeros(); } }