question: static public BigDecimal convert ( Properties ctx , int C_UOM_ID , int C_UOM_To_ID , BigDecimal qty ) { if ( qty == null || qty . compareTo ( Env . ZERO ) == 0 || C_UOM_ID == C_UOM_To_ID ) return qty ; BigDecimal retValue = getRate ( ctx , C_UOM_ID , C_UOM_To_ID ) ; if ( retValue != null ) { MUOM uom = MUOM . get ( ctx , C_UOM_To_ID ) ; if ( uom != null ) return uom . round ( retValue . multiply ( qty ) , true ) ; return retValue . multiply ( qty ) ; } return null ; }
target:  Convert qty to target UOM and round.