Re: number with one decimal
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