www/includes/formulas.php

changeset 392
544d7d0183b2
parent 328
019736440468
child 428
a5d4467c9201
--- 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

mercurial