BigDecimal function ( Double arg0 ) { BigDecimal loc0 = new BigDecimal ( arg0 == null ? "srini_string" : arg0 . toString ( ) ) ; String loc1 = loc0 . toPlainString ( ) ; int loc2 = loc1 . length ( ) - ( loc1 . lastIndexOf ( '.' ) + 1 ) ; return loc0 . setScale ( loc2 > 2 ? 6 : 2 , RoundingMode . HALF_UP ) ; }
rounds a double value . concode_field_sep Logger logger concode_elem_sep List<StateInvertInfo> stateInvertDevices concode_field_sep Object toBinding concode_elem_sep T convertFromBinding concode_elem_sep Object convertToBinding concode_elem_sep Object commandToBinding concode_elem_sep boolean toBindingValidation concode_elem_sep boolean isStateInvertDatapoint concode_elem_sep boolean fromBindingValidation concode_elem_sep T fromBinding