﻿
String.prototype.isInt16 = function (value) {
    if ((this == "") || (this == null)) { return false; }
    var regexNumeric = /^[0-9]+$/; if (regexNumeric.test(this)) { if ((this >= 0) || (this <= 32767)) { return true; } }
    return false;
}; String.prototype.isInt32 = function () {
    if ((this == "") || (this == null)) { return false; }
    var regexNumeric = /^[0-9]+$/; if (regexNumeric.test(this)) { if ((this >= 0) || (this <= 2147483647)) { return true; } }
    return false;
}; String.prototype.isFloat = function () {
    if ((this == "") || (this == null)) { return false; }
    return this.length > 0 && !(/[^0-9.](\.\d)?/).test(this);
};
