diff -r a1bcebc61ddd -r 544d7d0183b2 www/includes/formulas.php --- a/www/includes/formulas.php Fri May 31 22:58:03 2019 +0200 +++ b/www/includes/formulas.php Sun Jun 02 12:48:54 2019 +0200 @@ -280,6 +280,16 @@ +function density_str($sg) { + + global $my_brix_correction; + $plato = sg_to_plato(floatval($sg)); + $brix = $plato * $my_brix_correction; + return sprintf("%.3f", floatval($sg))." SG ".sprintf("%.1f",$brix).DEG.'Brix '.sprintf("%.1f",$plato).DEG.'P'; +} + + + /* Brouwhulp data.pas