[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
Hi,
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,
-Stephan
- References:
- [haiku-development] gcc enable _Decimal32, _Deimal64 and _Decimal128 (and g++ decimal32, ...) support
- [haiku-development] Re: gcc enable _Decimal32, _Deimal64 and _Decimal128 (and g++ decimal32, ...) support
- [haiku-development] Re: gcc enable _Decimal32, _Deimal64 and _Decimal128 (and g++ decimal32, ...) support
- [haiku-development] Re: gcc enable _Decimal32, _Deimal64 and _Decimal128 (and g++ decimal32, ...) support
- [haiku-development] Re: gcc enable _Decimal32, _Deimal64 and _Decimal128 (and g++ decimal32, ...) support
- [haiku-development] Re: gcc enable _Decimal32, _Deimal64 and _Decimal128 (and g++ decimal32, ...) support
- [haiku-development] Re: gcc enable _Decimal32, _Deimal64 and _Decimal128 (and g++ decimal32, ...) support
Other related posts:
- » [haiku-development] gcc enable _Decimal32, _Deimal64 and _Decimal128 (and g++ decimal32, ...) support- fano il primo
- » [haiku-development] Re: gcc enable _Decimal32, _Deimal64 and _Decimal128 (and g++ decimal32, ...) support- Alex Wilson
- » [haiku-development] Re: gcc enable _Decimal32, _Deimal64 and _Decimal128 (and g++ decimal32, ...) support- fano il primo
- » [haiku-development] Re: gcc enable _Decimal32, _Deimal64 and _Decimal128 (and g++ decimal32, ...) support- Adrien Destugues
- » [haiku-development] Re: gcc enable _Decimal32, _Deimal64 and _Decimal128 (and g++ decimal32, ...) support- Joseph Groover
- » [haiku-development] Re: gcc enable _Decimal32, _Deimal64 and _Decimal128 (and g++ decimal32, ...) support- fano il primo
- » [haiku-development] Re: gcc enable _Decimal32, _Deimal64 and _Decimal128 (and g++ decimal32, ...) support- Rene Gollent
- » [haiku-development] Re: gcc enable _Decimal32, _Deimal64 and _Decimal128 (and g++ decimal32, ...) support- fano il primo
- » [haiku-development] Re: gcc enable _Decimal32, _Deimal64 and _Decimal128 (and g++ decimal32, ...) support - Stephan Aßmus
- » [haiku-development] Re: gcc enable _Decimal32, _Deimal64 and _Decimal128 (and g++ decimal32, ...) support- fano il primo
- » [haiku-development] Re: gcc enable _Decimal32, _Deimal64 and _Decimal128 (and g++ decimal32, ...) support- Ingo Weinhold
- » [haiku-development] Re: gcc enable _Decimal32, _Deimal64 and _Decimal128 (and g++ decimal32, ...) support- Ryan Leavengood
- » [haiku-development] Re: gcc enable _Decimal32, _Deimal64 and _Decimal128 (and g++ decimal32, ...) support- fano il primo
- » [haiku-development] Re: gcc enable _Decimal32, _Deimal64 and _Decimal128 (and g++ decimal32, ...) support- fano il primo