• 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: Simple multiplication going bizarre
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple multiplication going bizarre


  • Subject: Re: Simple multiplication going bizarre
  • From: Yvan KOENIG <email@hidden>
  • Date: Fri, 30 Apr 2010 15:48:22 +0200

May you try to run this one ?

set myVal to 4999.0 * 12.5
set myVal to myVal * myVal
log myVal
set myVal to myVal * 100 as integer
log myVal
set myFraction to myVal mod 100
log myVal
set myFraction to myVal mod 100 as integer
log myFraction
set myVal to myVal div 100
log myVal
set myVal to "" & myVal & "." & myFraction as text
display dialog myVal

the added 'as integer' is welcomed.

Yvan KOENIG (VALLAURIS, France) vendredi 30 avril 2010 15:47:47


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Simple multiplication going bizarre (From: Richard Lake <email@hidden>)
 >Re: Simple multiplication going bizarre (From: Luther Fuller <email@hidden>)
 >Re: Simple multiplication going bizarre (From: David Wolfe <email@hidden>)
 >Re: Simple multiplication going bizarre (From: Richard Lake <email@hidden>)
 >Re: Simple multiplication going bizarre (From: Thomas Fischer <email@hidden>)

  • Prev by Date: Re: Simple multiplication going bizarre
  • Next by Date: FileMaker Pro 10 Insert Picture-Not Links
  • Previous by thread: Re: Simple multiplication going bizarre
  • Next by thread: Re: Simple multiplication going bizarre
  • Index(es):
    • Date
    • Thread