www/includes/formulas.php

changeset 392
544d7d0183b2
parent 328
019736440468
child 428
a5d4467c9201
equal deleted inserted replaced
391:a1bcebc61ddd 392:544d7d0183b2
278 return 0; 278 return 0;
279 } 279 }
280 280
281 281
282 282
283 function density_str($sg) {
284
285 global $my_brix_correction;
286 $plato = sg_to_plato(floatval($sg));
287 $brix = $plato * $my_brix_correction;
288 return sprintf("%.3f", floatval($sg))." SG ".sprintf("%.1f",$brix).DEG.'Brix '.sprintf("%.1f",$plato).DEG.'P';
289 }
290
291
292
283 /* 293 /*
284 294
285 Brouwhulp data.pas 295 Brouwhulp data.pas
286 296
287 297

mercurial