Re: -dateWithTimeIntervalSinceNow: 64-bits may overflow
Re: -dateWithTimeIntervalSinceNow: 64-bits may overflow
- Subject: Re: -dateWithTimeIntervalSinceNow: 64-bits may overflow
- From: Greg Guerin <email@hidden>
- Date: Wed, 12 Oct 2011 18:03:13 -0700
Jerry Krinock wrote:
Not necessarily. Multiple overflows tend toward a random number
generator.
Doubles overflow to +INF, as do floats. Arithmetic on INFs typically
yields one of the INFs (+INF or -INF). It is decidedly non-random.
It would be an interesting experiment, though.
-- GG
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden