Using float numbers as literals

abap, floating-point

Solution

Use some quote before and after the value. The '.' will not be taken as the end of code delimiter.

WHEN '3.14'. 

regards

Problem

I try to use float numbers to case - endcase, but dot is problem. For example ``` CASE constant. WHEN 3.14. "<=============== after 3, problem. WRITE / 'That's a pi'. ENDCASE. ``` How can I solve that? Thank you.

Original source