| double |
|
typedict |
| |
A
double
is the only supported floating-point type, and it is a 64 bit
IEEE 754 floating point number that has
yoix.math.MAX_DOUBLE
and
yoix.math.MIN_DOUBLE
as the largest and smallest positive values.
Uninitialized doubles, no matter where they happen to be declared,
always start at
0.
There are no primitive types in Yoix;
doubles are first class objects, so you never need special wrappers,
like Java's Double class.
| |
| Example: |
The program,
import yoix.*.*;
double n1; // uninitialized
double n2 = PI/2;
double n3 = sin(PI/2);
double n4 = 0xFFFD + 2; // hex + decimal
printf("n1=%g, n2=%g, n3=%.1f, n4=%e\n", n1, n2, n3, n4);
prints
n1=0, n2=1.57080, n3=1.0, n4=6.553500e+04
on standard output.
| | |
| See Also: |
typedict
|
|
Yoix is a registered trademark of AT&T Inc.
|