Add a Ceiling to the monadic math-block-thing

(Does that block have a name?)

This is good for two reasons:
* it just makes sense to have floor and ceiling together
* It's a minor thing for scratch 2 parity.
* it doesn't clutter anything. 😁
dev
Michael Ball 2015-08-15 12:28:57 +02:00
rodzic d243b379e8
commit 5a7b8bd2d6
2 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -1149,6 +1149,7 @@ SyntaxElementMorph.prototype.labelPart = function (spec) {
false,
{
abs : ['abs'],
ceiling : ['ceiling'],
floor : ['floor'],
sqrt : ['sqrt'],
sin : ['sin'],

Wyświetl plik

@ -2115,6 +2115,9 @@ Process.prototype.reportMonadic = function (fname, n) {
case 'abs':
result = Math.abs(x);
break;
case 'ceiling':
result = Math.ceil(x);
break;
case 'floor':
result = Math.floor(x);
break;