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

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

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

import java.util.Stack;


final class Mul implements PostScriptOperation {
	@Override
	/**
	 * num1 num2 mul product 

* * returns the product of num1 and num2. * If both operands are integers and the result * is within integer range, the result is an integer; * otherwise, the result is a real number.

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