gtg922r / obsidian-numerals

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

Units conversion behaving weirdly #76

Closed VictorJermiin closed 3 months ago

VictorJermiin commented 3 months ago

Is there a way I can force obsidian numerals to convert the units in the right way. In the example image it has the right units but it does not reduce the units to J K^-1 (Joules per Kelvin). I have had a lot of similar problems like this with the units. image

gtg922r commented 3 months ago

@VictorJermiin - yes you can force the units you want: just follow any calculation with "in..."

for example:

``'math
delta_S = C_V * log (T_f / T_i) in J K^-1
``'

works:

image

gtg922r commented 3 months ago

note: "to" also works:

``'math
100 km/hr in mi/hr
100 km/hr to mi/hr
``'