Difference between revisions of "W1102 Types"

From Coder Merlin
Line 6: Line 6:


== Data Types ==
== Data Types ==
'''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:


<pre>
<pre>

Revision as of 16:51, 13 December 2021

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

Prerequisites[edit]

Data Types[edit]

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)