UNPKG

@brewlab/calc

Version:

Library with methods for calculations used in brewing.

14 lines (13 loc) 780 B
/** * Calculates the original gravity (e.x. 1.050) given the gravity points, * volume, and efficiency. * @param {number} gravityPoints The total number of gravity points from all * the grains, extract, and adjuncts. Please note that this is gravity points * and not a gravity value. For example 1.050 would not be correct but 50 would be. * @param {number} volume Volume of the batch in gallons. * @param {number} mashEfficiency Percentage efficiency of the total brewhouse efficiency. * For extract brewing use 100. * @returns {number} original gravity of a volume of wart given the gravity points of * the grains provided for a given mash efficiency. */ export default function originalGravity(gravityPoints: number, volume: number, mashEfficiency?: number): number;