DataType Comparison

Estimated reading time: 2 minutes

The following table shows the Encore RPG data types, their supporting .NET framework type, and the equivalent C# data type. They are listed by hierarchical view of data types. Additional information can be found in the Encore RPG Language Reference links within the table and the ‘Related Sections” and “See Also” below.

Encore RPG type .NET Type C# Type
REFERENCE TYPES:    
*String System.String string
*Char System.String N/A
*Object System.Object object
VALUE TYPES:    
Structure Types :    
*Date System.DateTime datetime
*Time System.DateTime datetime
*TimeStamp System.DateTime datetime
Simple Types :    
Logical:    
*Boolean System.Boolean bool
*Ind System.Char N/A
Numeric Decimal:    
*Binary System.Decimal N/A
*Deciaml System.Decimal decimal
*Packed System.Decimal N/A
*Zoned System.Decimal N/A
Numeric Floating Point:    
*Float4 System.Single float
*Float8 System.Double double
Numeric Integral:    
*Byte System.Byte byte
*Integer2 System.Byte short
*Integer4 System.Byte int
*Integer8 System.Byte long
Character:    
*OneChar System.Char char

Remarks

To be completely precise, all values types are structures derived from System.Value. The distinction this chart draws between Structure Types and Simple Types is that simple types focus on providing one data element (their value), whereas the date/time structures provide several data elements as sub elements of the date/time values.

Data Type Declaration
Covers declaring data types of various programming elements.

Elementary Data types
Discusses numeric, character, and miscellaneous types provided by Encore RPG.

Data type Implementation
Illustrates how Encore RPG classifies and implements various data types.

See Also

Language Concepts

Data type Summary

Type Conversions

*Float Data type

*Integer Data type