Skip to content

Commit 4d06092

Browse files
Changes
1 parent 0e8a060 commit 4d06092

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/App.svelte

+5-2
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@
131131
return a.toString();
132132
}
133133
let r = parseFloat(a, 10).toFixed(2);
134-
if (r < 1e-11){
135-
return '0'
134+
if (r < 1e-11 && r > 0){
135+
// return '0'
136136
}
137137
return r;
138138
})
@@ -148,6 +148,9 @@
148148
if (line.startsWith('//') || line.startsWith('#') || !line.trim().length){
149149
out[idx] = null;
150150
}
151+
if (line.split('=').length === 3){
152+
line = line.split('=').slice(0, 2).join('=')
153+
}
151154
line = line.split('//')[0];
152155
try {
153156
out[idx] = evaluate(line, v2)

0 commit comments

Comments
 (0)