Merge pull request #965 from bartljak/issue#960

fixed issue 960
This commit is contained in:
Paul Kaplan 2018-03-19 06:06:00 -07:00 committed by GitHub
commit 979c8b05e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);