Commit ab0d2f8c authored by Meade's avatar Meade

Added version 5.3.1. Fixed the percentage display for Real Attenuation and updated a screenshot.

parent 8ebb475b
[package]
name = "BrewStillery"
version = "5.3.0"
version = "5.3.1"
authors = ["Meade <thedarkula2049@gmail.com>", "Emily <marleybrush5@gmail.com>"]
description = "BrewStillery is a brewer's, vintner's, and distiller's calculator. It has a multitude of great functions, such as calculating ABV, determining carbonation, and total sparge water needed."
# documentation to come
......
......@@ -4,6 +4,9 @@ It has a multitude of great functions, such as calculating ABV, determining carb
Written in Rust, using GTK3
## New In 5.3.1
* Fixed the percentage display for Real Attenuation.
## New In 5.3.0
* Added unit tests for verifying maths. To check, run `cargo test`
......
......@@ -133,7 +133,7 @@ pub fn realABV(startingBrix: f64, finalBrix: f64) -> (f64, f64) {
let apparentAttenuation = 1.0 - (0.18080000000000002 * (668.72 * newCubic - 463.37 - 205.347 * newCubic.powi(2)) + 0.8192 * (668.72 * newCubic - 463.37 - 205.347 * newCubic.powi(2))) / (initialRefractiveIndex);
let attenuation = apparentAttenuation * 0.8192;
let attenuation = apparentAttenuation * 0.8192 * 100.0;
let abv = ((0.01 / 0.8192) * (initialRefractiveIndex - (0.18080000000000002 * initialRefractiveIndex + 0.8192 * (668.72 * newCubic - 463.37 - 205.347 * newCubic.powi(2)))) / (2.0665-0.010665 * initialRefractiveIndex)) * 100.0;
......
......@@ -2770,7 +2770,7 @@
<property name="can_focus">False</property>
<property name="margin_top">5</property>
<property name="margin_bottom">5</property>
<property name="label" translatable="yes">Version 5.3.0</property>
<property name="label" translatable="yes">Version 5.3.1</property>
</object>
<packing>
<property name="expand">False</property>
......@@ -2838,7 +2838,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="title">BrewStillery</property>
<property name="subtitle">5.3.0</property>
<property name="subtitle">5.3.1</property>
<property name="show_close_button">True</property>
<child>
<placeholder/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment