@brewlab/calc
Version:
Library with methods for calculations used in brewing.
12 lines (11 loc) • 440 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Estimates the volume of the grain using the weight provided.
* @param {number} grainWeight Grain weight in American pounds (e.g. 10.5)
* @returns {number} Estimated volume based on the weight in American Gallons.
*/
function grainWeightToVolume(grainWeight) {
return Number((grainWeight * 0.28).toFixed(3));
}
exports.default = grainWeightToVolume;