public static final Double getPercentage ( byte [ ] data , int offset ) { int value = MPPUtility . getShort ( data , offset ) ; Double result = null ; if ( value >= 0 && value <= 100 ) { result = NumberHelper . getDouble ( value ) ; } return result ; }
Utility method to read a percentage value .