Raised This Month: $ Target: $400
 0% 

New Thread. Warning report


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 05-18-2012 , 14:28   Re: New Thread. Warning report
Reply With Quote #1

wouldn't the method I posted work as well?
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers
mottzi is offline
Send a message via MSN to mottzi
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 05-18-2012 , 14:32   Re: New Thread. Warning report
Reply With Quote #2

Quote:
Originally Posted by mottzi View Post
wouldn't the method I posted work as well?
Yes, it works too.
__________________

Last edited by <VeCo>; 05-18-2012 at 14:32.
<VeCo> is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-18-2012 , 16:49   Re: New Thread. Warning report
Reply With Quote #3

Quote:
Originally Posted by mottzi View Post
wouldn't the method I posted work as well?
No, cast an integer into Float completly change its value because it is interpreted a different way.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode