Topic 14: Low Level Operations (Representing Real Numbers and Graphics) Flashcards
Real numbers are stored using
floating point representation.
When storing very large numbers such as 678,904,321,345, it would become
0.678904321345 x 1012. The .678904321345 and 12 are converted to binary
Mantissa indicates the
details or precision of the number. E.g. 0.456 x 10^2 the mantissa is 0.456
Exponent indicates the
size or range of a number, so in 0.456 x 10^2 the exponent is 2
Graphics are stored in 2 methods which are
bitmap and vector
In a bitmap graphic each
pixel on the screen is represented by a binary number. Each pixel requires one bit of storage. An empty pixel =0 and filled pixel = 1
Pixel is short for
pixel element, tiny square on screen
A vector graphic is stored in a
mathematical format as a list of objects. Each object has attributes which can be edited
Typical object attributes are:
Line color, line width, fill colour, object dimensions
Translators,translate programs written using
english-like instructions. They are translated into machine code. Interpreters and compilers aid this process.
An interpreter
translates and runs code line by line, which is easier for sportting errors but means it runs slower
A compilers
translates the whole file at once, and creates a binary version of the file, it runs much faster.