Functiondojox.dtl.filter.integers.get_digit

dojo.require("dojox.dtl.filter.integers");
defined in dojox/dtl/filter/integers.js

Given a whole number, returns the 1-based requested digit of it desciprtion: 1 is the right-most digit, 2 is the second-right-most digit, etc. Returns the original value for invalid input (if input or argument is not an integer, or if argument is less than 1). Otherwise, output is always an integer.

Usage

function (value, arg) (view source)
parametertypedescription
value  
arg