गणित कैसे काम करता है
The multiplier is target servings divided by original servings, defaulting to 6 ÷ 4 = 1.50, and the multiplier field or the quarter, half, 2× and 3× buttons override it whenever a positive number is present. Each pasted line is then scanned for its first number, understanding mixed forms like 1 1/2, plain fractions like 3/4 and unicode glyphs such as half and two-thirds. Results are rebuilt as the nearest friendly fraction below 10, whole numbers above 10, and whole grams for weight units.
Servings and the multiplier are the obvious levers, but the Convert imperial to metric button changes the output most. Turned on, it rewrites cups as ×240 ml, tablespoons ×15, teaspoons ×5, ounces ×28.35, pounds ×453.6, inches ×2.54 and Fahrenheit to Celsius. Turned off, any line whose unit looks like a time, temperature or length is deliberately skipped, so a 350°F oven and a 25 minute bake stay exactly as written while the ingredients scale.
Only the first number on each line is touched, so a line reading 2 eggs plus 1 for the wash scales the 2 and leaves the 1 alone. Unit detection is substring based, which means a word beginning with min, such as minced or mint, is mistaken for minutes and left unscaled. Beyond parsing, scaling is pure arithmetic: pan size, bake time, leavening and salt rarely scale linearly, and fraction rounding can drift a few percent on small amounts.
सामान्य प्रश्न
How do I halve a recipe without retyping the servings? +
Press the half button, which writes 0.5 into the multiplier field and overrides the servings calculation entirely. The quarter, 2× and 3× buttons work the same way. Clear the multiplier field to go back to the servings ratio.
Why did the oven temperature stay the same when I scaled up? +
That is deliberate. Any number followed by a temperature, time or length unit — °F, °C, minutes, hours, inches, cm — is left untouched, because doubling a recipe should not double the bake temperature or the tin diameter.
Does the metric toggle turn cups into grams? +
No. It converts volume to volume, so a cup becomes 240 ml and a tablespoon 15 ml. Only ounces and pounds become grams. For a true volume-to-weight answer you need an ingredient density, which this tool does not hold.
What fractions does the output round to? +
Below 10 it picks the closest of one-eighth, quarter, third, three-eighths, half, five-eighths, two-thirds, three-quarters and seven-eighths, keeping any whole number in front. From 10 upwards it rounds to a whole number, and weights round to whole grams.
Can I scale a recipe written in fractions like 1 1/2 cups? +
Yes. The parser reads mixed numbers such as 1 1/2, bare fractions such as 3/4, decimals, and unicode fraction characters. It converts them to a decimal, applies the multiplier, then reformats the answer back into a cooking-friendly fraction.