Chapter 3 DynaScript Predefined Objects
The Number
object
has these properties:
Number.MAX_VALUE
This property is read-only.
Returns the largest positive finite value of the number type, which is approximately 1.7976931348623157e308.
Integer.
This example displays the largest possible number that can be used in PowerDynamo:
<!--SCRIPT
document.WriteLn( Number.MAX_VALUE );
-->
Number.MIN_VALUE
This property is read-only.
Returns the smallest positive nonzero value of the number type, which is approximately 5e-324.
Integer.
This example displays the smallest positive non-zero number that can be used in PowerDynamo:
<!--SCRIPT
document.WriteLn( Number.MIN_VALUE );
-->
Number.NaN
This property is read-only.
A value that indicates that an arithmetic expression returned a value that was not a number.
String (NaN)
This example will have an output of NaN.
<!--SCRIPT
document.WriteLn( Number.NaN );
-->
Number.NEGATIVE_INFINITY
This property is read-only.
Returns a string indicating that a number is outside the range that ECMAScript is capable of representing.
String (-Infinity).
This example will have an output of -Infinity
:
<!--SCRIPT
document.WriteLn( Number.NEGATIVE_INFINITY );
-->
Number.POSITIVE_INFINITY
This property is read-only.
Returns a string indicating that a number is outside the range that ECMAScript is capable of representing.
String (Infinity)
This example will have an output of Infinity
:
<!--SCRIPT
document.WriteLn( Number.POSITIVE_INFINITY );
-->
Copyright © 1999 Sybase, Inc. All rights reserved. |