By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,352 Members | 1,645 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,352 IT Pros & Developers. It's quick & easy.

What is the fastest way of getting the fraction part of a floating point number?

P: n/a
ME
What is the fastest way of getting the fraction part of a floating point
number?

So, if I have a float 10.3 I want to get a float with value 0.3 fast.

Thanks
Feb 2 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a

ME wrote:
What is the fastest way of getting the fraction part of a floating point
number?
This is a fairly trivial problem. I'd hate to do your homework for you.
Have you already tried any aproaches and found them too slow?
So, if I have a float 10.3 I want to get a float with value 0.3 fast.


Define "fast" in this context?
Lines of code/coding time fast or runtime fast?

Cheers,
Andre

Feb 2 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.