Another thought... would it be possible to get DecimalFloatingPoint, and 
maybe the 3 types Dec32, Dec64, and Dec128 moved to Base?
Not the implementation, but rather just the types, which would be the same 
no matter what Decimal floating point package you use...
Then I could add the packed types and the arbitrary precision type from 
decNumber, possibly building off your nice code.
(I'm still amazed at how you are able to do so much with so little code... 
very Julian I suppose!)
(I'd also add the binary integer format, using the same types, Dec32, 
Dec64, and Dec128, hopefully I would be able to do it in a way where
you can use one or the other... so on non-Intel platforms, you'd use 
everything from decNumber, on Intel platforms you'd use the types
from DecFP for Dec32/64/128, and from decNumber for packed and arbitrary 
precision).

Scott

On Tuesday, April 28, 2015 at 9:26:17 PM UTC-4, Steven G. Johnson wrote:
>
> The DecFP package
>
>       https://github.com/stevengj/DecFP.jl
>
> provides 32-bit, 64-bit, and 128-bit binary-encoded decimal floating-point 
> types following the IEEE 754-2008, implemented as a wrapper around the 
> (BSD-licensed) Intel Decimal Floating-Point Math Library 
> <https://software.intel.com/en-us/articles/intel-decimal-floating-point-math-library>.
>   
> Decimal floating-point types are useful in situations where you need to 
> exactly represent decimal values, typically human inputs.
>
> As software floating point, this is about 100x slower than hardware binary 
> floating-point math.  On the other hand, it is significantly (10-100x) 
> faster than arbitrary-precision decimal arithmetic, and is a 
> memory-efficient bitstype.
>
> The basic arithmetic functions, conversions from other numeric types, and 
> numerous special functions are supported.
>

Reply via email to