diff --git a/card-tools.js b/card-tools.js index a608749..12620d2 100644 --- a/card-tools.js +++ b/card-tools.js @@ -300,7 +300,7 @@ class { const lhs = this.parseTemplateString(str[1]); const rhs = this.parseTemplateString(str[3]); var expr = '' - if(!parseFloat(lhs)) + if(parseFloat(lhs) != lhs) expr = `"${lhs}" ${str[2]} "${rhs}"`; else expr = `${parseFloat(lhs)} ${str[2]} ${parseFloat(rhs)}`