ABAP Decimal byte

简介: Sent: Monday, November 30, 2009 1:52 PM

以这个data element为例说明:

image.png

image.png

BCD格式意思是每个digit占4 bits->就是半个byte.因此上面例子里面的data type,前面的length 31一共占 16个byte.

image.png

with two decimal places packed into each byte. ----每两个decimal places占用一个byte, 然后decimal的小数点’.'和符号位占用一个byte.因此最后的结果是:


16 + 14/2 + 1 = 24个byte


From: Wang, Jerry


Sent: Monday, November 30, 2009 2:18 PM

我在SE11里面建了几个data element, 分别是DEC length31 , decimal place为14,2,5的, 在debugger里面前三个都是p(16)


image.png

image.png

相关文章
|
4月前
|
安全 程序员 编译器
static_cast与dynamic_cast到底是什么?
该文讨论C++中`static_cast`和`dynamic_cast`在处理子类与父类指针转换的情况。总结如下: 1. `static_cast`父类转子类:可能不安全,但不会报错。 2. `static_cast`子类转父类:安全,无错误。 3. `dynamic_cast`父类转子类:若父类有虚函数,运行时检查,成功返回子类指针,失败则为`nullptr`。 4. `dynamic_cast`子类转父类:安全,无错误。
|
5月前
|
安全 编译器 程序员
【C++入门到精通】C++类型的转换 | static_cast | reinterpret_cast | const_cast | dynamic_cast [ C++入门 ]
【C++入门到精通】C++类型的转换 | static_cast | reinterpret_cast | const_cast | dynamic_cast [ C++入门 ]
35 0
|
5月前
|
安全 编译器 程序员
[C++ 从入门到精通] 6.static_cast、dynamic_cast等显示类型转换
[C++ 从入门到精通] 6.static_cast、dynamic_cast等显示类型转换
72 0
|
存储 SQL 数据库管理
NUMERIC(10,4) 和DECIMAL(10, 4) 的区别和用法?
NUMERIC(10,4) 和DECIMAL(10, 4) 的区别和用法
521 0
C#基础②——数据类型(decimal和float、double的区别)
double和float都是存小数的,为什么还要分两个,一个不就行了,那它们两个有哪些区别?
base -2 Number——进制转换
题目描述 Given an integer N, find the base −2 representation of N. Here, S is the base −2 representation of N when the following are all satisfied: S is a string consisting of 0 and 1. Unless S= 0, the initial character of S is 1. Let S=SkSk−1…S0, then S0×(−2)0+S1×(−2)1+…+Sk×(−2)k=N.
110 0
ABAP Characterc and HEX
Created by Wang, Jerry, last modified on Dec 20, 2014
ABAP Characterc and HEX
|
机器学习/深度学习 编解码 Python
成功解决Python3版UnicodeDecodeError: ‘ascii‘ codec can‘t decode byte 0x90 in position 614: ordinal not in
成功解决Python3版UnicodeDecodeError: ‘ascii‘ codec can‘t decode byte 0x90 in position 614: ordinal not in
成功解决Python3版UnicodeDecodeError: ‘ascii‘ codec can‘t decode byte 0x90 in position 614: ordinal not in