OT: PHP 32 bit numbers security issue

OT: PHP 32 bit numbers security issue

Tzafrir Cohen tzafrir at cohens.org.il
Wed Jan 5 13:07:19 IST 2011


On Wed, Jan 05, 2011 at 12:40:14PM +0200, Uri Even-Chen wrote:
> I hate floating point. if you search Google for 2^1023, 



> you get this result:
> 
> 2^1023 = 8.98846567 × 10^307
> 
> However if you search for 2^1024, you don't get a number at all.

Do you prefer to do that in fixed-point?

It's actually neat to be able to use a relatively low number of bits and
still say something meaningfull about 2^1023 .

-- 
Tzafrir Cohen         | tzafrir at jabber.org | VIM is
http://tzafrir.org.il |                    | a Mutt's
tzafrir at cohens.org.il |                    |  best
tzafrir at debian.org    |                    | friend



More information about the Linux-il mailing list