Integer Test

Sometimes we need a way to test the user input to know if it is an integer, but a lot of algorithms available t are incomplete since they only check to see if the input contain the numeric values from 0 to 9. If so it is said that the input is a number.Here you will find a more precise way to test the user input for knowing if it is an integer.

Related Scripts

  • Randbin
    The file generates a vector of 'n' random numbers (0's & 1's) with a Binomial distribution. The parameter 'p' is the probability associated to ge...
  • Int2vec
    Useful when you want to interpret integers as codewords.It also could be used to convert the output of the binary representation of an integer to vect...
  • Integer Snippets
    Integer snippet provides a generic RegExp to match integers....
  • Commafying An Integer 1.0
    This script contains a quick function to comma separate thousands in an integer or float....
  • Integer Sqrt
    This code calculate the square root of a integer....
  • Test/spec 0.10
    test/spec layers an RSpec-inspired interface on top of Test::UnitThis allows the developer to test TDD and BDD (Behavior-Driven Development).test/spec...
  • Generator For Integer Partitions 1.0
    Generator for integer partitions script uses an iterative procedure to deal with integer partitions....
  • Integer To Alphanumeric Character
    A function that converts an integer between 0 and 61 into an alphanumberic character.Ranges from 0-9, A-Z, a-z. Very handy for generating random strin...
  • Test Run 1.1
    Test Run helps you and your team create, manage, and execute test plans.Test Run is not a tool designed exclusively for test engineers, it is a tool d...
  • String To Integer Conversion
    Program uses std::istringstream which is defined in sstream to convert string to integer....
  • Integer To String Conversion
    Program uses std::ostringstream which is defined in sstream to convert integer to string....
  • Shorturl
    This function takes a string containing a URL and returns a shorter form of it: The function removes all the directories from the URL: http://host.com...
  • Find Base-b Expansion Of An Integer
    Function BASEXP finds base-b expansion of a non-negative integer, outputting it as a numeric vector. Requirements:· MATLAB Release: R2006a...
  • Two Complement
    This is a very simple utility that computes the two's complement value from an unsigned integer input. The number of bits of the input integer must al...
  • Lucas
    Given a nonnegative integer n, return the nth Lucas number. Return an error message if the argument is not an integer. Requirements:· MATLAB Rele...
  • Rice Coder
    Is a simple rice coder, requires input integer and the bits size of the integer along with the K value! Requirements:· MATLAB Release: R12.1...
  • Bit::shiftreg
    This module implements rotate left, rotate right, arithmetic shift left and logical shift right operations with carry flag for all C integer types.The...
  • Test / Quiz
    Test / Quiz script helps you to create a simple test with an "one-from-many" answers choise. Datas for the each test or quiz is kept into th...
  • Count Integer Places & Count Fractional Places
    Integer places are to the left of a decimal point, while the fractional (decimal) places are to the right.The package consists of two scripts. One for...
  • Jacobisymbol
    The Jacobi symbol (a/b) is a generalization of the Legendre symbol (a/p). For the Legendre symbol, the first argument a is an arbitrary integer and th...
DMCA Notice-Privacy Policy
2004 - 2013 DownScripts. All rights reserved.