title: Convert double binding to double value in JavaFX
body: <p>This is my code. I want to store this total value into database</p>
  
  <p>How can I do that? If I directly assign to double variable it shows error:</p>
  
  <blockquote>
    <p>double binding value cannot converted into double</p>
  </blockquote>
  
  <pre><code>DoubleBinding total = Bindings.createDoubleBinding(() -&gt; 
  supplytable.getItems().stream().collect(Collectors.summingDouble(conductor::getPrice)),
                                   supplytable.getItems());
  lbltotal.textProperty().bind(Bindings.format("Total: %.2f", total));
  </code></pre>