mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-28 22:30:40 -04:00
Update src/blocks/scratch3_looks.js
Thanks! Co-Authored-By: adroitwhiz <adroitwhiz@protonmail.com>
This commit is contained in:
parent
2770f925fe
commit
c8694256b6
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue