• 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: number with one decimal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: number with one decimal


  • Subject: Re: number with one decimal
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 20 Jul 2011 09:31:28 +1000
  • Thread-topic: number with one decimal

On 20/7/11 2:31 AM, "Cameron Knowlton" <email@hidden> wrote:

> But not a really, really BIG integer, not without precision rounding.

That depends on how the integer and real values are implemented. In AS, a
real can't be bigger than 2^29 - 1, so by definition, values above that will
be more precise as reals.

If you want to store precise integers, some kind of floating point type will
do it with total precision up to a certain limit. The problem only really
occurs if you pass that limit, or if you get a value back whose creation
you're unsure of -- then you don't know if it has been rounded.

--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>


 _______________________________________________
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

  • Follow-Ups:
    • Re: number with one decimal
      • From: Doug McNutt <email@hidden>
References: 
 >Re: number with one decimal (From: Cameron Knowlton <email@hidden>)

  • Prev by Date: Re: number with one decimal
  • Next by Date: Re: number with one decimal
  • Previous by thread: Re: number with one decimal
  • Next by thread: Re: number with one decimal
  • Index(es):
    • Date
    • Thread