number
| Syntax |
number (value)
|
| Params |
value is the object whose datatype you wish to coerce to be a numeric value.
|
| Action |
Coerces the datatype of value to be a 32-bit signed numeric value if possible.
|
| Returns |
The numeric value produced by the coercion if it is successful, otherwise an error condition.
|
| Examples |
number (123456) » 123456
number (1575.23)
number (infinity)
The example above shows the largest value that can be represented by a 32-bit signed number.
|
| Errors |
Passing a string that isn't a valid number or passing a value that can't be coerced to a long (e.g., a rect) results in an error message.
|
| Notes |
See the discussion of datatypes in Chapter 1 of the UserTalk Reference Guide for information on the range of values that can be represented by a number, and for other details. This verb is a synonym for long.
|
| See Also |
long
|