Hi, thanks again… But one thing is missing (I think it was ok in the previous version !) : is it possible that Calculate use the , and not only the . for decimal values ??? In French we use the , as separator for the decimal values (defined in the prefs of macOS)
Thank you in advance
Ange
Thanks, perhaps through a pref for the calculate module with either a list of choices for the separator ? or to indicate which system we want to use (as the MacOS finder proposes) ?
It is not exactly as you show in your snapshot. Snapshot of my macOS prefs (main difference relative to your snapshot : position of the money symbol, words in FR without capitals ;-),
Ah yes, that’s because I have mine set to English and yours is set to Français. But I just mean, that the decimal separator (, or .) will be taken from the macOS setting.
Hello again!!
Another request!
Is it possible for the calculate extension to calculate time duration?
For example it would be nice to be able to convert “14:30 - 16:15” to “1h 45m”!
Seems to be partly an issue with MathJS lib (at least version used)
I just tested here. https://mathnotepad.com . Same issues with subtraction & decimals, tho the addition seems to work ok on that scratchpad site (maybe version of lib they using)
It’s an issue with floating point arithmetic in general. Any math library that uses floats will be affected the same way. A classic example is 0.1 + 0.2 = 0.30000000000000004
Perhaps adding a default significant figure (configurable perhaps) for rounding will help.
Update: I’ve published an update to the extension that uses format{ precision: 14 } for output which should avoid these sorts of issues (as per mathjs docs)