1 21 22 package org.armedbear.lisp; 23 24 public final class truncate extends Primitive 26 { 27 private truncate() 28 { 29 super("truncate", "number &optional divisor"); 30 } 31 32 public LispObject execute(LispObject arg) throws ConditionThrowable 33 { 34 return arg.truncate(Fixnum.ONE); 35 } 36 37 public LispObject execute(LispObject first, LispObject second) 38 throws ConditionThrowable 39 { 40 return first.truncate(second); 41 } 42 43 private static final Primitive TRUNCATE = new truncate(); 44 } 45 | Popular Tags |