Class floor

java.lang.Object
All Implemented Interfaces:
ArithFunction, java.io.Serializable

public class floor
extends DefaultArithFunction

Function: math.floor(N): encapsulates java Math.floor(N), returns the largest double value that is not greater than the argument and is equal to a mathematical integer.

Examples:

  • math.floor(3.1): returns 3.
  • math.floor(3.9): returns 3.
Author:
Jomi
See Also:
Random, ceil, Serialized Form
  • Constructor Summary

    Constructors
    Constructor Description
    floor()  
  • Method Summary

    Modifier and Type Method Description
    boolean checkArity​(int a)
    returns true if a is a good number of arguments for the function
    double evaluate​(TransitionSystem ts, Term[] args)
    evaluates/computes the function based on the args
    java.lang.String getName()
    returns the name of the function

    Methods inherited from class jason.asSemantics.DefaultArithFunction

    allowUngroundTerms, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait