W1102 Types

From Coder Merlin
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder

Prerequisites[edit]

Data Types[edit]

Data types (or sometimes just types) provide a means to classify data so that the REPL or ECRD environment can properly interpret the data. A data type provides the connection between the binary format in which all data is ultimately represented in a digital computer (whether that be in main memory, a register, on disk, or in transit across a network) and the representation of that data for humans. Further, legal operations on the associated data is determined by its type. Let’s consider a few bytes in memory:

07AE: 0 1 0 0 0 0 0 1
07AF: 0 1 0 1 1 0 0 0


Types-Set of Values.png


ComingSoonIcon.png
Coming Soon
Add section describing all basic types, including sized integers (Int8, etc.) and unsigned integers of various sizes.

Constants[edit]

let pi = 3.14159265358979323846
let e = 2.718281828459
let g0 = 9.80665 (in m/s2)