/** * <summary> * Returns the current current thermal compensation value. * <para> * </para> * <para> * </para> * </summary> * <returns> * a floating point number corresponding to the current current thermal compensation value * </returns> * <para> * On failure, throws an exception or returns <c>YWeighScale.COMPENSATION_INVALID</c>. * </para> */ public double get_compensation() { double res; if (_func == null) { throw new YoctoApiProxyException("No WeighScale connected"); } res = _func.get_compensation(); if (res == YAPI.INVALID_DOUBLE) { res = Double.NaN; } return(res); }