Re: [dev] suckless bignum library

From: Mattias Andrée <maandree_AT_kth.se>
Date: Thu, 10 Dec 2015 19:52:59 +0100

On Thu, 10 Dec 2015 10:50:12 -0800
Louis Santillan <lpsantil_AT_gmail.com> wrote:

> On Thu, Dec 10, 2015 at 10:36 AM, Greg Reagle
> <greg.reagle_AT_umbc.edu> wrote:
> > On 12/10/2015 12:57 PM, FRIGN wrote:
> >>
> >> What does the base have to do with the results?
> >
> >
> > A lot. For instance, "Many non-integral values, such
> > as decimal 0.2, have an infinite place-value
> > representation in binary (.001100110011...) but have a
> > finite place-value in binary-coded decimal (0.0010).
> > Consequently a system based on binary-coded decimal
> > representations of decimal fractions avoids errors
> > representing and calculating such values." from
> > https://en.wikipedia.org/wiki/Binary-coded_decimal#Advantages
>
> Ala the famous IEEE 754 example that became popular again
> with JavaScript [0].
>
> [0] http://0.30000000000000004.com/
>

Did the JavaScript-hipsters just discover this?

Received on Thu Dec 10 2015 - 19:52:59 CET

This archive was generated by hypermail 2.3.0 : Thu Dec 10 2015 - 20:00:33 CET