10.07.2015 Views

Data Types & Type Checking - Ace

Data Types & Type Checking - Ace

Data Types & Type Checking - Ace

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Primitive <strong>Data</strong> <strong><strong>Type</strong>s</strong>• Integers – almost always an exact reflection of thehardware.– Java’s signed integers: byte,short,int,long.• Floating Point – model real numbers, but only asapproximations.– Support for two types: float and double.• Complex – two floats, the real and the imaginary.– Supported in Fortran and Python.• Boolean – two elements, true and false.– Implemented as bits or bytes.• Character – stored as numeric codings.– ASCII 8-bit encoding, UNICODE 16-bit encoding.Lecture 063

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!