Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Borland > Re: Looking for...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 1068 of 1118
Post > Topic >>

Re: Looking for function

by Victor Fraenckel <victorf@[EMAIL PROTECTED] > Dec 17, 2007 at 08:29 PM

Marco van de Voort wrote:

> Better use SI :-)

Not an option in this application :>{)
> 
> Anyway, multiply the fractional part with a large power of two (e.g.
1024).
> The resulting number is the upper part of your fraction, and 1024 below.
> Then use the normal common denomitor way to simplify it to aa sane
number.
> 
> - number: 3.25 
> - frac(3.25) = 0.25
> - 0.25*1024=256
> 
> So  3 256/1024   

This is pretty neat. I never heard about this method before! Thank you 
for showing me!

Vic
 




 3 Posts in Topic:
Looking for function
Victor Fraenckel <vict  2007-12-16 21:00:23 
Re: Looking for function
Marco van de Voort <ma  2007-12-17 08:47:23 
Re: Looking for function
Victor Fraenckel <vict  2007-12-17 20:29:45 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Jul 23 15:58:12 CDT 2008.