You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the above example, will be adjusted by a factor of 4/2:
48
49
- All the ingredients (including alternative units and alternative ingredients) with scalable numerical quantities have their quantities adjusted by a factor of 4/2 in this case
50
+
-[Cookware quantities](/guide-extensions.html#cookware-quantities) (integer quantities are rounded up, with a minimum of 1)
- Cookware can also be quantified (without any unit, e.g. `#bowls{2}`)
208
208
- Quantities will be added similarly as ingredients if cookware is referenced, e.g. `#&bowls{2}`
209
+
- Cookware quantities are scaled by [`scaleBy`](/api/classes/Recipe#scaleBy) and [`scaleTo`](/api/classes/Recipe#scaleTo), with two special rules:
210
+
-**Integer quantities** are rounded up (ceiling) after scaling, with a minimum of `1`. For example, `#bowl{1}` scaled by `0.5` stays `1` (not `0.5`), and scaled by `1.5` becomes `2`.
211
+
-**Non-integer quantities** are scaled as-is without rounding. For example, `#sticks{2.5}` scaled by `1.5` becomes `3.75`.
212
+
-**Range quantities** (e.g. `#pans{1-2}`) follow the same rules — if both bounds are integers, each is individually rounded up after scaling.
213
+
- Cookware without a quantity (e.g. `#oven`) is never affected by scaling.
0 commit comments