long receivedAlarmCount = HistoryMqReceiveAdaptor.getReceivedAlarmCount();
long alarmsTotal = 10000l;
float percent = BigDecimal.valueOf(receivedAlarmCount).divide(BigDecimal.valueOf(alarmsTotal), 2, BigDecimal.ROUND_HALF_UP).floatValue();long receivedAlarmCount = HistoryMqReceiveAdaptor.getReceivedAlarmCount();
long alarmsTotal = 10000l;
float percent = BigDecimal.valueOf(receivedAlarmCount).divide(BigDecimal.valueOf(alarmsTotal), 2, BigDecimal.ROUND_HALF_UP).floatValue();