• 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: magic integer converter number 62? (John W Baxter)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: magic integer converter number 62? (John W Baxter)


  • Subject: Re: magic integer converter number 62? (John W Baxter)
  • From: Nigel Garvey <email@hidden>
  • Date: Tue, 20 Feb 2001 14:59:27 +0000

=?iso-8859-1?q?M=20Shaw?= wrote on Tue, 20 Feb 2001 00:54:11 -0800 (PST):

>Well the fact is it does work as long as the number is greater than or
>equal to 62, or at least it gives that impression to me!! I use it to
>convert real numbers into integers see below. Is there a "proper" way
>to do it that doesn't offend the rules of binary number arithmetic? I'm
>a designer so excuse my amateur coding :-)
>
>on floor(num)
> return (((100 + (num - (num mod 1))) - 100) as integer)
>end int

num div 1

NG


  • Follow-Ups:
    • Re: magic integer converter number 62? (John W Baxter)
      • From: Nigel Smith <email@hidden>
  • Prev by Date: Re: AppleScript e-mail encode/decode tool
  • Next by Date: Re: Record problem
  • Previous by thread: Re: magic integer converter number 62? (John W Baxter)
  • Next by thread: Re: magic integer converter number 62? (John W Baxter)
  • Index(es):
    • Date
    • Thread