src/numeric-directive.js
function calculateMaxLength(value) {
                var length = 16;
                if (!angular.isUndefined(value)) {
                    length = Math.floor(value).toString().length;
                }
                if (decimals > 0) {
                    // Add extra length for the decimals plus one for the decimal separator.
                    length += decimals + 1; 
                }
                if (min < 0) {
                    // Add extra length for the - sign.
                    length++;
                }
                return length;
            }
function calculateMaxLength(value) {
                var length = 16;
                if (!angular.isUndefined(value)) {
                    length = Math.floor(value).toString().length;
                }
                if (decimals > 0) {
                    // Add extra length for the decimals plus one for the decimal separator.
                    length += decimals + 1; 
                }
                if (min < 0) {
                    // Add extra length for the - sign.
                    length++;
                }
                return length;
            }
function calculateMaxLength ( value ) { var length = 16 ; if ( ! angular . isUndefined ( value ) ) { length = Math . floor ( value ) . toString ( ) . length ; } if ( decimals > 0 ) { // Add extra length for the decimals plus one for the decimal separator. length += decimals + 1 ; } if ( min < 0 ) { // Add extra length for the - sign. length ++ ; } return length ; }
Calculate the maximum input length in characters.
If no maximum the input will be limited to 16; the maximum ECMA script int.
Calculate the maximum input length in characters . If no maximum the input will be limited to 16 ; the maximum ECMA script int .