BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Weird Floating point Error

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE)
View previous topic :: View next topic  
Author Message
Bart
Guest





PostPosted: Mon Mar 14, 2005 9:41 am    Post subject: Weird Floating point Error Reply with quote



Hi,

Since a few days i'm getting Invalid Floating Point Operations Errors
(EInvalidOp) cin my project.
The stupid thing is that it worked fine and now it crashes at the next
statement:

#define WORD_BUILDING_BLOCK_TRUE_PAGE_LENGTH 850

m_iPageNumber = ( fTopLeftY / WORD_BUILDING_BLOCK_TRUE_PAGE_LENGTH ) + 1;

fTopLeftY is a float.
m_iPageNumber ia a integer.

Can someone explain to me why this is now happening.

Regards,

Bart


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.