View Single Post
  #5   Spotlight this post!  
Unread 09-06-2002, 10:32
srawls's Avatar
srawls srawls is offline
Registered User
#0122 (Nasa Knights)
 
Join Date: Dec 2001
Location: Yorktown
Posts: 507
srawls is an unknown quantity at this point
Send a message via AIM to srawls
type casting

How about just using type casting instead. For example

Code:
int x;

x = 5.9; //this would give you a warning like in your example
x = int(5.9); //this truncates correctly, and gives no warning
Stephen