Quantcast
Channel: SCN : Unanswered Discussions - ABAP Development
Viewing all articles
Browse latest Browse all 8768

What is the best field type for currency calculations?

$
0
0

Hiya,

 

I am doing a load of currency calculations e.g. here's one line of it

 

The 'Total' fields I am using for doing/totalling my calculations has been defined as a local variable that reference an amount field setup in the data dictionary as:

So in my program I am using these 2 decimal field.

 

Of course I now realize this is a problem, as lots of rounding occurs and my values are way out when you deal with amounts in the millions.

 

Does anyone know what type of variable they think is best for doing currency calculations?

And could you provide a simple example?

 

Many thanks!


Viewing all articles
Browse latest Browse all 8768

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>