Talk About Network



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 > Looking for fun...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 1068 of 1102
Post > Topic >>

Looking for function

by Victor Fraenckel <victorf@[EMAIL PROTECTED] > Dec 16, 2007 at 09:00 PM

I would appreciate hearing from anyone who could point me to a place to 
grab a function the takes a floating point number and returns a string 
that represents that number as a integer (maybe) and a fraction like 
3.25 = 3 1/4. Like this perhaps:
var
   myfrac :string;

myfrac = Num2Frac(num : single);

My usage is for english units commonly found in carpentry like 
sixteenths, eighths, quarters and halves.

Any enlightenment will be appreciated.

Vic Fraenckel
KC2GUI
victorf ATSIGN windreader DOT com




 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 Tue May 13 18:40:22 CDT 2008.