All Implemented Interfaces:
PostfixMathCommandI, Serializable

public class Left extends BinaryFunction
Extract the left most n characters from a string: left("abcdefg",2) -> "ab"
  • If n is greater than the length of the string return the full string.
  • If n is less than zero an EvaluationException is thrown.
  • If the first argument is not a string an EvaluationException is thrown.
  • If the second argument is not a number representing an integer an EvaluationException is thrown.
See Also: