[haiku-development] Re: gcc enable _Decimal32, _Deimal64 and _Decimal128 (and g++ decimal32, ...) support

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 05 Dec 2011 22:23:01 +0100


first of all, the people who are talking about rounding to solve the problem don't understand the full scope of the problem. However, what you need to do exactly depends on the particular situation. For example, if you try to split 100 EUR in three equal parts, you just can't. There will be one cent left which you have to handle in your program "somewhere". One particular problem however is precision. To address that, I've have done a little research and added the MAPM library as backend to DeskCalc, so that the calculator gives you correct values in a lot more cases and otherwise returns at least much more precise values than what would be possible with doing calculations with "doubles".

Best regards,

Other related posts: