This paper provides an overview of the various data types that programmers use when creating functional programming languages and systems. It covers alphanumeric strings, Boolean data types, characters, integers, real numbers, percentages, currency symbols, date/time formats, telephone numbers, and floating-point numbers. The paper explains how each data type serves a specific purpose in data input and system design, emphasizing that programmers must select appropriate data types based on the needs of their system.
When computer programmers create programming languages, they must make use of data types to create a functional system. A number of different formats of data types exist for their use. Perhaps the most obvious is that of an alphanumeric string, or a string of letters and numbers like ab1cd1. Alphanumeric strings are commonly used to help explain the availability of text that can be entered or used in a field such as a password. In contrast, Boolean data types make use of words like "and," "or," and "not" to filter information, expressing notions of true and false. A user can use Boolean searches to help locate more exact matches in Internet searches. For example, a user could search for "computer help" and "DOS," which would search for any document containing "computer help" that also contains the word "DOS." Performing Boolean searches often helps users find results more closely related to what they need to find.
Characters are also classified as data types. Quite simply, a character is a single visual object used to represent text, numbers, or symbols, such as the letter "a". Characters may be contrasted with integers, which are singular numerical representations of text, numbers, and/or symbols. Integers must be whole numbers, although they can be positive or negative, whereas real numbers can include fractions. Any number that you could place on a number line is a real number. Real numbers include whole numbers (integers) and numbers with decimal or fractional parts, and they can be positive or negative.
Real numbers contrast with percentages, which are also partial numbers but are represented by a percentage sign. Floating-point numbers represent another important numeric data type. In floating-point numbers, the decimal point can be moved without having a fixed position. For example, a floating-point number could have the decimal at any position, as in the numbers 1.23, 87.425, or 9039454.2. Floating-point numbers, in contrast to integers and exact numerics, are classified as approximate numerics. This flexibility makes them useful for scientific calculations and situations where exact precision is less critical than a broad range of representable values.
Beyond basic numeric and character types, programmers employ specialized data formats tailored to specific needs. Currency symbols automatically format text to display a symbol such as a dollar sign, pound sign, or Euro sign in front of values, which is particularly useful when constructing forms for online catalogs. Date/time data formats require users to enter data according to a specific format so that dates and times that do not exist cannot be recorded, ensuring data integrity.
An important consideration in data type selection is the telephone number. Telephone numbers cannot be automatically formatted as numeric data because all telephone numbers start with a 0, and you cannot put a 0 in front of a numeric datatype. Therefore, telephone numbers must be set as a text datatype. Phone numbers also often have parentheses and dashes between numbers, which strictly numerical data cannot accommodate.
"Strategic application in programming systems"
Always verify citation format against your institution’s current style guide requirements.