• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Fraction Maker Revisited Solved?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fraction Maker Revisited Solved?


  • Subject: Re: Fraction Maker Revisited Solved?
  • From: Jason Bourque <email@hidden>
  • Date: Tue, 09 Nov 2004 21:22:55 -0500

Title: Re: Fraction Maker Revisited Solved?
Better, I have a few more ideas thanks!


On 11/6/04 10:50 PM, "David Andrews" <email@hidden> wrote:

Jason,

Opps, I think I over did it.  Is this what you are trying to do:

set vNumberToFraction to 0.55
set vBottomNumber to 32

set parts to 1 / vBottomNumber
set num to round (vNumberToFraction / parts)
set denom to vBottomNumber
repeat while (num div 2) is (num / 2) -- (don't need round here)
    set num to num div 2
    set denom to denom div 2
end repeat

set vFractionFound to "" & num & "/" & denom --> "9/16"
 
David A


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Fraction Maker Revisited Solved? (From: David Andrews <email@hidden>)

  • Prev by Date: Re: Curl vs URL Access (was something else)
  • Next by Date: Fastest way to find mod files?
  • Previous by thread: Re: Fraction Maker Revisited Solved?
  • Next by thread: Fastest way to find mod files?
  • Index(es):
    • Date
    • Thread