• 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: David Andrews <email@hidden>
  • Date: Sat, 6 Nov 2004 22:50:41 -0500

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

  • Follow-Ups:
    • Fastest way to find mod files?
      • From: Jason Bourque <email@hidden>
    • Re: Fraction Maker Revisited Solved?
      • From: Jason Bourque <email@hidden>
References: 
 >Re: Fraction Maker Revisited Solved? (From: Jason Bourque <email@hidden>)

  • Prev by Date: Re: Alias Forms as Property
  • Next by Date: Re: Timeouts & FileMaker Scripts
  • Previous by thread: Re: Fraction Maker Revisited Solved?
  • Next by thread: Re: Fraction Maker Revisited Solved?
  • Index(es):
    • Date
    • Thread