All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openpdf.renderer.function.postscript.operation.Floor Maven / Gradle / Ivy

The newest version!
package org.openpdf.renderer.function.postscript.operation;

import java.util.Stack;

final class Floor implements PostScriptOperation {
	@Override
	/**
	 * num1 floor num2 

* * returns the greatest integer value less than or equal * to num1. The type of the result is the same as the type * of the operand.

* * errors: stackunderflow, typecheck */ public void eval(Stack environment) { environment.push(Math.floor((Double)environment.pop())); } }