octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New randi function added


From: Rik
Subject: Re: New randi function added
Date: Sat, 21 Aug 2010 10:01:53 -0700

David Bateman wrote:

>>
>>   
> Its just 2^24 - 1 in the same manner that bitmax just returns 2^53-1.
> Why not just explicitly calculate this value in the same manner that
> bitfcn.cc(Fbitmax) does. That is
> 
> retval = (static_cast<float> (0xFFFFFF));
> 
Indeed.  I came to the same conclusion.  See changeset 10897:dbec9d590756.

--Rik


reply via email to

[Prev in Thread] Current Thread [Next in Thread]