Merge pull request #909 from cycomachead/ceiling

Add a Ceiling to the monadic math-block-thing
dev
Jens Mönig 2015-09-23 11:50:02 +02:00
commit 858094dd16
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;