Language Guide

CHAPTER 3
Values
Value Class Denitions 55
ELEMENTS
None
OPERATORS
The and / operators always return Real values as their results. The +, -,
*, Mod, and ^ operators return Real values if either of their operands is a
Real value.
The operators that can have Real values as operands are +, -, *, (or /), Div,
Mod, ^, =, , >, , <, and .
COERCIONS SUPPORTED
AppleScript supports coercion of a Real value to a single-item list or a
string. AppleScript supports coercion of a Real value to an Integer value
only if the Real value has no fractional part.
AppleScript also supports coercion of a Real value using the synonym Number,
but the class of the resulting value remains unchanged:
set x to 1.5 as number
class of x --result: real
NOTES
Real numbers that are greater than or equal to 10,000.0 or less than or equal to
0.0001 are converted to exponential notation when scripts are compiled. The
largest value that can be evaluated (positive or negative) is 1.79769e+308.
Record 3
A value of class Record is an unordered collection of properties. Like the
properties of application objects, each property has a label, and the properties
of a record are distinguished from each other by their label. There can be only
one property with a particular label in any record.