org.extex.interpreter.primitives.register.real
Class MathCeil

java.lang.Object
  extended by org.extex.interpreter.type.AbstractCode
      extended by org.extex.interpreter.primitives.register.real.AbstractMath
          extended by org.extex.interpreter.primitives.register.real.MathCeil
All Implemented Interfaces:
java.io.Serializable, CountConvertible, RealConvertible, Code, Theable

public class MathCeil
extends AbstractMath
implements Theable, RealConvertible, CountConvertible

Math. The smallest (closest to negative infinity) double value that is not less than the argument and is equal to a mathematical integer.

Example

 \the\mathceil 0.234
 \real7=\mathceil 0.56
 \real8=\mathceil\real7
 \count99=\mathceil 1.34
 

Version:
$Revision: 6447 $
Author:
Michael Niedermair
See Also:
Serialized Form

Constructor Summary
MathCeil(CodeToken token)
          Creates a new object.
 
Method Summary
protected  Real calculate(Context context, TokenSource source, Typesetter typesetter)
          Calculate
 
Methods inherited from class org.extex.interpreter.primitives.register.real.AbstractMath
convertCount, convertReal, execute, the
 
Methods inherited from class org.extex.interpreter.type.AbstractCode
getLocalizer, getName, getToken, isIf, isOuter, readResolve, toString, toText, toText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.extex.interpreter.type.Theable
the
 
Methods inherited from interface org.extex.interpreter.primitives.register.real.RealConvertible
convertReal
 
Methods inherited from interface org.extex.interpreter.parser.CountConvertible
convertCount
 

Constructor Detail

MathCeil

public MathCeil(CodeToken token)
Creates a new object.

Parameters:
token - the initial token for the primitive
Method Detail

calculate

protected Real calculate(Context context,
                         TokenSource source,
                         Typesetter typesetter)
                  throws ConfigurationException,
                         HelpingException,
                         TypesetterException
Calculate

Specified by:
calculate in class AbstractMath
Parameters:
context - the context
source - the token source
typesetter - the typesetter
Returns:
the real value
Throws:
ConfigurationException - in case of an configuration error
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetter
See Also:
AbstractMath.calculate( org.extex.interpreter.context.Context, org.extex.interpreter.TokenSource, org.extex.typesetter.Typesetter)