From db33da27538f4fc9490ada0566b84954a3facee6 Mon Sep 17 00:00:00 2001 From: DD Liu Date: Thu, 19 Mar 2020 12:37:34 -0400 Subject: [PATCH] Revert "Don't fix small values less than .01 to 2 decimal points. This matches 2.0 behavior" This reverts commit 2770f925fea6a1cedf0b02f2e39255d322ad486d. --- src/blocks/scratch3_looks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blocks/scratch3_looks.js b/src/blocks/scratch3_looks.js index 4ff0950f9..753c71932 100644 --- a/src/blocks/scratch3_looks.js +++ b/src/blocks/scratch3_looks.js @@ -253,7 +253,7 @@ class Scratch3LooksBlocks { if (text === '') return text; // Limit decimal precision to 2 digits. - if (typeof text === 'number' && Math.abs(text) >= .01) { + if (typeof text === 'number') { text = parseFloat(text.toFixed(2)); }