sqlite> select ieee754(1.7);
ieee754(7656119366529843,-52)

or ?00011011001100110011001100110011001100110011001100110011 for the mantissa.  
Note that it is an infinitely repeating fraction.

> -----Original Message-----
> From: sqlite-users-bounces at mailinglists.sqlite.org [mailto:sqlite-users-
> bounces at mailinglists.sqlite.org] On Behalf Of Dominique Devienne
> Sent: Friday, 23 October, 2015 02:12
> To: General Discussion of SQLite Database
> Subject: Re: [sqlite] Simple Math Question
> 
> On Fri, Oct 23, 2015 at 10:09 AM, Scott Doctor <scott at scottdoctor.com>
> wrote:
> >
> > 17 -> 0x10001 mantissa
> >
> 
> Not in IEEE binary rep based on the 1/2^i fraction I describe above.
> 0.17 would be 0/2 + 0/4 + 1/8 (0.125) + ... (whatever 1/2^1 fractions
> approximate best the remainder of 0.17 - 0.125). --DD
> _______________________________________________
> sqlite-users mailing list
> sqlite-users at mailinglists.sqlite.org
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users



Reply via email to