Datatypes

From UG

(Difference between revisions)
Jump to: navigation, search
(CT2 Date)
Line 9: Line 9:
== Numbers ==
== Numbers ==
-
=== Integer ===
+
=== integer ===
Examples:  
Examples:  
Line 18: Line 18:
* -7896
* -7896
-
=== Positive Integer ===
+
=== positive integer ===
* 23
* 23
Line 24: Line 24:
* 0
* 0
-
=== Decimal ===
+
=== decimal ===
Also called (floating-point numbers)
Also called (floating-point numbers)
Line 46: Line 46:
* 897
* 897
-
=== Unicode ===
+
=== unicode ===
Examples:
Examples:
Line 53: Line 53:
* русский алфавит
* русский алфавит
-
=== ASCII ===
+
=== ascii ===
Examples:
Examples:

Revision as of 01:28, 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

Dates and Time

ct2 date

This date must be in the following format:

<Day>-<Month(first 3 letters)>-<Year>

Example: 17-Jan-2010

Personal tools