fixed issue 960

This commit is contained in:
Jake Bartles 2018-03-05 20:15:49 -05:00
parent 02c6002bb2
commit 11e12cca4f

View file

@ -253,7 +253,7 @@ class Scratch3LooksBlocks {
// @TODO in 2.0 calling say/think resets the right/left bias of the bubble // @TODO in 2.0 calling say/think resets the right/left bias of the bubble
let message = args.MESSAGE; let message = args.MESSAGE;
if (typeof message === 'number') { if (typeof message === 'number') {
message = message.toFixed(2); message = parseFloat(message.toFixed(2));
} }
message = String(message); message = String(message);
this.runtime.emit('SAY', util.target, 'say', message); this.runtime.emit('SAY', util.target, 'say', message);