Meta Project

The Unofficial Meta Documentation

WHOLE!

Summary

WHOLE! is the datatype that represents signed whole numbers

Category

DATATYPE

Usage

value: TO WHOLE! 100

Arguments

A numerical value or a valid numerical string.

Refinements

Not applicable on category

Description

Besides WHOLE!, Meta knows several other types of WHOLE. There is also WHOLE16!, WHOLE32! and WHOLE64!. These reserve the space needed for the values that will be used. This way Meta can optimize its code depending on the needs of the program.

Example Code

If values are declared as in

whole-value: 100
byte-constant= 100

These methods of assigning are the so-called SET-WORD! and LET-WORD! With SET the value will be assigned a WHOLE! value while with LET-WORD! the smallest datatype available will be used. In this case byte-constant will become a BYTE!, because 100 fits that type.

Related

BYTE!  
BINARY!  
FLOATER!  
NATURAL!  
NUMBER!  
TO  
WHOLE!  
WHOLE8!  
WHOLE16!  
WHOLE32!  
WHOLE64!  

Back to the Meta Datatypes Reference index