4 ms·
I wish that Intel would have spent some transistors on an arbitrary precision decimal arithmetic floating point unit. That would have helped scientific processi
by ChuckMcM 13y ago
I wish that Intel would have spent some transistors on an arbitrary precision decimal arithmetic floating point unit. That would have helped scientific processing but in the past has been 'too expensive' in terms of transistors to implement. Now that we have more transistors than we know what to do with, seems like that should be revisited.
Then generalize the vector coproccessing abilities of the GPU and that would be a pretty flexible base to work from.
- wmf 13y agoTry Power7/8; IBM loves decimal math.
- jey 13y agoWhy does scientific computing care about decimal arithmetic?
- ChuckMcM 13y agoSame reason accountants do, numbers like .1 aren't approximate repeating fractions in decimal representation.
- acqq 13y agoCitation needed, please. I don't know where nature is decimal.
- ChuckMcM 13y agoActually its more fun if you just "do the math" and its a fun computer science problem: 0.1 is 1 / 10, fractional binary bits are 1/2, 1/4, 1/8, 1/16 ... find a combination of bits that represents 0.1. If you want a very long treatise about how binary sucks for doing arithmetic wander over to http://speleotrove.com/decimal/ http://speleotrove.com/decimal/
- jey 13y agoRight, and I can see why that's a problem in accounting, but why does it matter for scientific computing? I do a fair amount of stuff that could be called scientific computing, and I just use doubles. If I need to keep track of uncertainty or propagate errors, I normally use Gaussians as the representation (not "significant figures" as would be implied by using decimal).
- drewcrawford 13y agoI'm sorry, are you asking for what purpose a scientist would need to multiply by a power of ten? Converting between units in scientific notation? Doing base 10 logarithms? Calculating things in decibels? Maybe I have misunderstood the question.
- jey 13y agoThe original post that started this thread was saying that chips should support decimal floating point natively in silicon instead of only base-2 floating point. Yes, those are different things: https://en.wikipedia.org/wiki/IEEE754#Basic_formats https://en.wikipedia.org/wiki/IEEE754#Basic_formats
- drewcrawford 13y agoI am well aware of the difference between base 2 and base 10. You asked "why not just use doubles?" And my answer is "because one often multiplies by powers of ten."
- repsilat 13y agoIt almost never matters in scientific computing. Doubles give us the equivalent of almost 16 digits of accuracy, and that's more precision than we know any physical constant to. You're right that the world isn't decimal, and switching to decimal encodings actually reduces the effective precision of any computation.
- 13y ago
- malkia 13y agoYour fingers