gtg922r / obsidian-numerals

An obsidian plugin which turns a math code block into a full featured calculator
Other
389 stars 7 forks source link

Ignore unknown variables and units in input string #63

Open flinge opened 8 months ago

flinge commented 8 months ago

Just simply ignore unknown text in the calculation string instead of showing an error. I.e. think of text as comments re what the numbers mean, like in this string, for example: (7000 revenue 0.15 preCOVID margin - 400 dda - 2900 debt 0.07 int rate) * (1 - 0.21 tax rate). https://erhanbaris.github.io/smartcalc-app/ can do it, please see attached.

Screenshot 2023-12-25 at 18 51 38