Skip to main content
gamedev.net
๐Ÿ”’ Locked

#define

Started by Allebarde Apr 17, 2002 at 1:28 PM 1 replies 150+ views
Original Post
Allebarde
Allebarde
Hi! I have a strange problem with #define: #define SIZEX 1024 #define SIZEY 1024 TexX = x/SIZEX; TexY = y/SIZEY; When I run the program I don''t see my texture.. But when I replace SIZEX and SIZEY by 1024, it works!! Where is the problem please?? I have an another question What is the biggest float format? float? double? Thanks
Fruny
Fruny
Have you checked for float vs. integral division ?
double is larger than float
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." โ€” Brian W. Kernighan

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.