SAP ABAP4 Learning --- Data Type (2)

zhaozj2021-02-16  93

-------------------------------------------------- -------------------------------------- Basic data type The following table summarizes the ABAP / 4 Defined basic data type (effective size in byte): ABAP / 4 Data Type Data Type Default Size Valid Size Initial Value Description C 1 1 - 65535 Space Text, Character (Alphanumeric Character) D 8 8 8 8 8 8 8 8 8 8 8 8 8) (Format: YYYYMMDD) F 8 8 0 floating point number i 4 4 0 Integer (integer) N 1 1 - 65535 '00 ... 0 'Digital Text P 8 1 - 16 0 Compression Number T 6 6' 000000 'Time ( Format: hhmmss) x 1 1 - 65535 X'00 'hexadecimal in all aspects, data type D, f, i and t are predefined, but data type C, N, P and X can have additional instructions . For example, it can be defined in the order. -------------------------------------------------- -------------------------------------- Digital Data Type ABAP / 4 Support Three Digital Data Types . They are: Type I Integer (integer) Type P Compression number type F floating point number type I Data type I data is -2 ** 31 to 2 ** 31-1 and only integer. The non-integrated results of the arithmetic operation are rounded, not truncated. Type I data can be used for counters, item numbers, indexing, and time periods. Type P Data Type P Data allows you to have a number after the decimal point. The numerical range of type P data depends on the number of bits after the size and decimal point. The effective size can be any value from 1 to 16 bytes. Complicated two decimers to a byte, and the last byte contains a number and symbol. Up to 14 digital type F data is allowed for positive and negative numbers after the decimal point, the value of the type F is 1x10 ** - 307 to 1x10 ** 308, including 0 (zero). The precise range is approximately 15 pieces of decimal number, depending on the floating point algorithm of the hardware platform. Since it is converted to a binary system in the inside, a rounding error may occur.

转载请注明原文地址:https://www.9cbs.com/read-13282.html

New Post(0)