rveciana / obsidian-cooklang

MIT License
8 stars 0 forks source link

Fractions are converted to unnecessarily precise decimals #1

Closed skykooler closed 8 months ago

skykooler commented 8 months ago

I have a recipe that calls for a third of a cup of rice vinegar, which is written as per the cooklang spec as @rice vinegar{1/3%cup}. This gets rendered in the ingredient list as 0.333333333333333 cup rice vinegar. This should probably be truncated to fewer digits - I seriously doubt that people need a resolution of femtocups.

neongrey commented 8 months ago

i don't find the decimalization desirable at all, tbh-- if I note an ingredient down as a fraction, say, @black pepper{1/8%tsp} it'll be because my measuring spoons are labeled in fractions and 0.125 tsp black pepper is just gonna be a hassle to deal with in the kitchen.

(even if in this specific case I'm going to completely disregard what the recipe says and just freehand crank the grinder because this recipe is clearly underseasoning; there's other recipes where fractional teaspons actually matter, this is just from the one I was just transcribing)

rveciana commented 8 months ago

I think that there are two topic here.

rveciana commented 8 months ago

It should be available now, if you use version 0.0.10