TiddlyWiki / TiddlyWikiClassic

TiddlyWiki Classic (not to be confused with TiddlyWiki5: https://github.com/Jermolene/TiddlyWiki5)
https://classic.tiddlywiki.com/
492 stars 114 forks source link

Sum filter operator bug on negative numbers with non zero digits beyond the tenths place #281

Closed dvainwebbcity closed 1 year ago

dvainwebbcity commented 1 year ago

For example, the filter "1 3 [[-4.05]] +[sum[]]" should evaluate to -0.05. Instead it evaluates to -0.04999999999999982. -4.005 evaluates to -0.004999999999999893. -4.00 correctly evaluates to 0. Positive numbers, whether in brackets or not, are not affected. Neither replacing the double square brackets with single quotes nor storing the number in a field fix the problem.

Version:5.2.4

dvainwebbcity commented 1 year ago

Sorry, wrong project