AT&T Home | AT&T Labs | Research
AT&T Labs, Inc. - Research

The Yoix® Scripting Language

Home | What's New | Grammar | Documentation | Download | License | YChart | YDAT | YWAIT | Byzgraf | FAQs
Number typedict
 
A variable that is declared to be a Number accepts any integer or double, and its type is whatever is currently stored in that variable. Uninitialized Number variables, no matter where they happen to be declared, always start as integers with a value of 0. Every object that a Yoix program uses is either a Callable, Number, or Pointer.
 
 Example:   The program,
import yoix.*.*;

Number n1;
Number n2 = 12;
Number n3 = sin(PI/4);

printf("n1=%O, n2=%O, n3=%O\n", n1, n2, n3);
n1 = n2;
n2 = n3;
n3 = 0;
printf("n1=%O, n2=%O, n3=%O\n", n1, n2, n3);
prints
n1=0, n2=12, n3=0.7071067811865475
n1=12, n2=0.7071067811865475, n3=0
on standard output.
 
 See Also:   Builtin, Callable, Function, Object, Pointer

 

Yoix is a registered trademark of AT&T Inc.