>VFP put 4 decimal places for all currency type feilds. Is there a way for me to set it to 2 in one place and have it work all through my application. How are other programmer tacking this?
>
>Thanx for ur input.
>Gnana
Gnana,
There are several things to watch out: you have SET DECIMALS (watch out, it's scoped to the datasession), and/or you can also use the format properties for your textboxes. With this you can make sure that the input is always two decimals. Now if you want your calculations to be exactly two decimals, you have the ROUND() function. I've seen strange problems with the ROUND() function and you should be able to retrieve interesting information by doing a search on the messages. I resorted to a home made ROUND function.
José