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 String[] ROLLERSHUTTER_DEVICES concode_elem_sep Logger logger concode_field_sep T fromNumber concode_elem_sep T convertFromBinding concode_elem_sep Boolean toBoolean concode_elem_sep Object convertToBinding concode_elem_sep String toString concode_elem_sep Object commandToBinding concode_elem_sep T fromString concode_elem_sep boolean isRollerShutterLevelDatapoint concode_elem_sep Number toNumber concode_elem_sep T fromBoolean