Class NumberFunction

  • All Implemented Interfaces:
    Function, Serializable

    public class NumberFunction
    extends FunctionBase
    implements Function
    http://docs.jsonata.org/numeric-functions.html Casts the arg parameter to a number using the following casting rules: - Numbers are unchanged - Strings that contain a sequence of characters that represent a legal JSON number are converted to that number - All other values cause an error to be thrown. If arg is not specified (i.e. this function is invoked with no arguments), then the context value is used as the value of arg. Examples $number("5")==5 ["1", "2", "3", "4", "5"].$number()==[1, 2, 3, 4, 5]
    See Also:
    Serialized Form