Talk:Generalised floating point addition: Difference between revisions

Line 23:
 
I have posted an implementation of J, based on the answer given here for "why" (ignoring concepts that seem unnecessary and focusing on the desired result). I believe that this implementation is convenient to use, fast to implement, and that it performs reasonably well. Is this an acceptable implementation? If so, could the task description be changed to allow it? If not, perhaps you could expand on the "why" to explain why I need to do something different? Thanks! --[[User:Rdm|Rdm]] 08:22, 30 October 2011 (UTC)
 
The task requires "Calculate the terms for -8 to 20 in this sequence". I notice J only got as far as -4. Most programming languages are constrained by their hardware floating point. Maybe J isn't, but most are. Hence the need for a Template/Library in these less advanced languages.
 
> More generally the "DIGITS" are not specifically numerical, they only require a "+" operation, a digit index, MSD, LSD and the concept of ZERO.
 
IEEE has [[wp:Decimal128_floating-point_format|Decimal128 floating-point format]] in BCD for just this reason. In this case BCD is used where performance and/or accuracy is required.
 
[[User:NevilleDNZ|NevilleDNZ]] 08:45, 30 October 2011 (UTC)