Datatypes
From UG
(Difference between revisions)
(→Intro) |
(→Other datatypes examples) |
||
Line 65: | Line 65: | ||
== Other datatypes examples == | == Other datatypes examples == | ||
+ | |||
+ | Everything outside of common/standard is not a type really. It is a string of certain format/constraint. | ||
+ | |||
+ | Examples: | ||
+ | |||
+ | * Airline 3 Letter Numeric Code, possible value: 053 | ||
+ | * Master Airway bill, possible value: 222-7824-5587 |
Revision as of 01:24, 21 January 2010
Contents |
Intro
Common CT2 datatypes - see:
Numbers
Integer
Examples:
- 23
- 1000
- 0
- -7896
Positive Integer
- 23
- 1000
- 0
Decimal
Also called (floating-point numbers)
Examples:
- 2.3
- 1.0
- 1.9083496
- 100865.08E23
Strings
alphanumeric
The alphanumeric character set consists of the numbers 0 to 9 and letters A to Z.
Examples:
- hgTF9087GggyYg
- book
- 897
Unicode
Examples:
- อักษรไทย
- русский алфавит
ASCII
Examples:
- jhg&$&^*&@dceUH!
- Hello!
- #234
- 12-34-98698690
http://en.wikipedia.org/wiki/ASCII
Other datatypes examples
Everything outside of common/standard is not a type really. It is a string of certain format/constraint.
Examples:
- Airline 3 Letter Numeric Code, possible value: 053
- Master Airway bill, possible value: 222-7824-5587