Update src/blocks/scratch3_looks.js

Thanks!

Co-Authored-By: adroitwhiz <adroitwhiz@protonmail.com>
This commit is contained in:
DD Liu 2020-03-13 19:43:15 -04:00 committed by GitHub
parent 2770f925fe
commit c8694256b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -253,7 +253,7 @@ class Scratch3LooksBlocks {
if (text === '') return text;
// Limit decimal precision to 2 digits.
if (typeof text === 'number' && text >= .01) {
if (typeof text === 'number' && Math.abs(text) >= .01) {
text = parseFloat(text.toFixed(2));
}