ABAP 물타기/Function
Delete decimal zero
물타기
2012. 4. 2. 11:26
1. 소수점 아래 0을 제거하는 Function
CONVERSION_EXIT_ME12D_OUTPUT
CONVERSION_EXIT_MEQUA_OUTPUT
2. 내가 작성한 코드
data: lv_str type string,
lv_char(20),
lv_dot type string value '.',
lv_zero type string value '0'.
lv_char = '0.0012000'.
lv_str = lv_char.
shift lv_str right deleting trailing lv_zero.
shift lv_str right deleting trailing lv_dot.
condense lv_str no-gaps.
--> 0.0012
iPhone 에서 작성된 글입니다.
CONVERSION_EXIT_ME12D_OUTPUT
CONVERSION_EXIT_MEQUA_OUTPUT
2. 내가 작성한 코드
data: lv_str type string,
lv_char(20),
lv_dot type string value '.',
lv_zero type string value '0'.
lv_char = '0.0012000'.
lv_str = lv_char.
shift lv_str right deleting trailing lv_zero.
shift lv_str right deleting trailing lv_dot.
condense lv_str no-gaps.
--> 0.0012
iPhone 에서 작성된 글입니다.