Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9656

problem with decimals

$
0
0

Hi expert,

              Please any one help me about this issue that when i divide amount on calculator it give me difference result when i divide the same amount in my program this issue give me wrong result as i explain it below ,thanks.

 

 

 

 

DATA: AMNT TYPE P DECIMALS 2.

DATA: KWERT TYPE KOMV-KWERT.

 

 

KWERT = 400.00

 

AMNT = ( KWERT / 30 ) * 14.

 

AMNT = 186.62  because 400 / 30 will give 1.33

 

 

but if i make this calculation on calculator will give me 186.67  because 400 / 300 = 1.333333333333.

 

can i find any type give me this result.


Viewing all articles
Browse latest Browse all 9656

Trending Articles