Computer W…

Editing

Data type

1
  • The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit. If you are undoing an edit that is …
Latest revision Your text
Line 1: Line 1:
 
Data Types are simply enough the types of data a variable or field in a database can store.
 
Data Types are simply enough the types of data a variable or field in a database can store.
 
== Numerical Data types ==
 
== Numerical Data types ==
Numerical data types are used to represent numeric values. These values can be added, subtracted, multiplied, and divided. Also can have other mathematical functions such as Sine performed on them.
+
Numerical data types are used to represent
 
=== Whole Numbers ===
 
=== Whole Numbers ===
 
{{Main|Integer}}
 
{{Main|Integer}}
Line 7: Line 7:
 
=== Decimal ===
 
=== Decimal ===
 
{{Main|Decimal}}
 
{{Main|Decimal}}
These numbers contain decimal points. For doing exponentiation, it is highly recommended to use some type of decimal as negative exponents and fractional exponents usually result in some kind of decimal.
+
These numbers contain decimal points.
   
 
== Character ==
 
== Character ==
Character data types are any data type that isn't numeric, while these types can be used to store numbers, you can't perform mathematical operations on them in this form. You'd have to convert them to a numeric data type first. Usually in this form the addition operator becomes a concatation operator, meaning that if you have a character variable with the number 1 as its current value and try to add a two to it, the programmer will end up with a 12 instead of a 3. It is possible to write programs to add characters as if they are numbers, but not very efficient.
+
== Binary ==
 
Usually files or graphics.
 
== User-defined type ==
 
   
 
{{Data type}}
 
{{Data type}}
  Loading editor
Below are some commonly used wiki markup codes. Simply click on what you want to use and it will appear in the edit box above.

View this template