10 Decimal

Chaos

New Member
Is there a way around Progress displaying only 10 numbers after the decimal

eg. If you use a calculator then

18189645.95 / 2200 000 000 = 0.0082680208863636363636363636363636

but in Progress

18189645.95 / 2200 000 000 = 0.00826802090000000000000000000000000

Thank you !
 
Yes there is a way, Progress WILL work this out correctly. I can not think of the EXACT answer from top of my head but. Basically you need to tell Progress when you launch Prowin 32 that you would like calculations to x.dp. You need to say it in some form of param file. I can not think of what you need EXACTLY off the top of my head, put a bit of work into it and you will crack it. Progress just needs to know how much you require displayed.
 
Progress 9.1D help on the DECIMALS options of then DEFINE VARIABLE statement states the following:

When you define a variable AS DECIMAL, Progress automatically stores up to 10 decimal places for the value of that variable. Use the DECIMALS option to store a smaller number of decimal places.

This seems to imply that progress cannot store more than 10 decimal places for any calculation. You may have to consider implementing your own maths functions that work on string representations of your values :(.
 
Top