|
-
Feb 16th, 2008, 11:57 PM
#1
Thread Starter
Hyperactive Member
Generic Numeric Class, Avoid Narrowing and Widening with Division
I was just wondering how I should handle division in a generic math class, should I never use integer devision?
Or is there a way to determine if there will be a narrowing conversion when using integer division and avoid this with a desicion structure?
The purpose of this class is to provide some reusable statistics functions etc.
I am not a math guru, so any info or help would be appreciated (Im not exactly sure of the information i need to google for and everything I find is not really helpful to my situation).
Thanx in advance...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|