Limitation of COLECurrency
rwagner -- rwagner@genre.com Monday, February 24, 1997 Robert Wagner@GRN 02/24/97 10:01 PM Environment: VC++ 4.2-flat / Win 95 / MSDN We've found COLECurrency very useful for precise fixed-point caclulations. However, more decimal places would be very useful; only four seems to be a waste since nobody I know has ever found a use for the hundred quintillions of whole numbers that COLECurrency will store... we could easily give those up and limit ourselves to 999 trillion whole numbers. Anybody know if there are plans to expand this object type to more decimal places, or if there is a good way to expand it? This could include a third party solution or library. Cheers Rob
Mike Blaszczak -- mikeblas@nwlink.com Monday, February 24, 1997 At 17:01 2/24/97 -0500, you wrote: >Environment: VC++ 4.2-flat / Win 95 / MSDN You should upgrade to MFC 4.2B by installing the patch as soon as possible. Without the patch, MFC (and, therefore, your programs) are only compatible with beta versions of various operating system components, and without the patch you'll necessarily run into trouble sooner or later. >Anybody know if there are plans to expand this object type to more decimal > places, There are none. > or if there is a good way to expand it? This could include > a third party solution or library. The book "The Art of Computer Programming" contains outstanding algorithms for various fixed-point and floating-point operations. It's easy to implement the algorithms in C or C++, and they're very efficient. You could tailor them exactly to your needs. .B ekiM http://www.nwlink.com/~mikeblas/ These words are my own. I do not speak on behalf of Microsoft. This performance was not lip-synched.
Become an MFC-L member | Вернуться в корень Архива |