public double setFixedValue(double value) throws IOException, SaneException {
    Preconditions.checkArgument(
        value >= -32768 && value <= 32767.9999, "value " + value + " is out of range");
    SaneWord wordValue = SaneWord.forFixedPrecision(value);
    ControlOptionResult result = writeOption(wordValue);
    Preconditions.checkState(
        result.getType() == OptionValueType.FIXED,
        "setFixedValue is not appropriate for option of type " + result.getType());

    return SaneWord.fromBytes(result.getValue()).fixedPrecisionValue();
  }
public double setFixedValue ( double value ) throws IOException , SaneException { Preconditions . checkArgument ( value >= - 32768 && value <= 32767.9999 , "value " + value + " is out of range" ) ; SaneWord wordValue = SaneWord . forFixedPrecision ( value ) ; ControlOptionResult result = writeOption ( wordValue ) ; Preconditions . checkState ( result . getType ( ) == OptionValueType . FIXED , "setFixedValue is not appropriate for option of type " + result . getType ( ) ) ; return SaneWord . fromBytes ( result . getValue ( ) ) . fixedPrecisionValue ( ) ; }
Sets the value of the current option to the supplied fixed-precision value. Option value must
be of fixed-precision type.