View Single Post
Old Jul 6th, 2007, 7:42 PM   #6
Ben.Dougall
Programmer
 
Ben.Dougall's Avatar
 
Join Date: Jul 2007
Location: London, Ontario, Canada
Posts: 34
Rep Power: 0 Ben.Dougall is on a distinguished road
Send a message via MSN to Ben.Dougall
Quote:
Originally Posted by DaWei View Post
You understand that the return of rand, as usually implemeted in C/C++, is an integer, right? Casting doesn't give you a real number.
True, I had that in to eliminate a warning I got with a former formula. One of my professors docked 30% if a compile warning occured. Removed, and no warning. Thanks for your eyes on that one.

I have a feeling i can learn a lot from this forum. Thank again Dawei and lectric.
Ben.Dougall is offline   Reply With Quote