[Skip to Body]
Primary:
[Front Door]
[Current]
[Glance]
-
[Honesty]
[On Teaching and Learning]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Readings]
[Reference]
Misc:
[SamR]
[Java 1.5 API]
[Espresso]
[TAO of Java]
[CS152 2004F]
Back to Strings in Java (2). On to Representing Numbers in Java.
Held: Monday, 12 September 2005
Summary: Today we begin to explore some issues pertaining to numeric values in Java.
Related Pages:
Notes:
Overview:
primitivetypes.
int : primitive representation of integers with fixed range
long : primitive representation of integers with fixed range ; probably the best default for integers
short : primitive representation of integers with fixed range
double : primitive approximation of real numbers with fixed accuracy ; probably the best default for reals
float : primitive approximation of real numbers with fixed accuracy
Integer : object representation of integers with fixed range
Long : object representation of integers with fixed range
Short : object representation of integers with fixed range
Double : object approximation of real numbers with fixed accuracy
Float : object approximation of real numbers with fixed accuracy
BigDecimal : object approximation of real numbers with programmer-specifiable accuracy
BigInteger : object representation of integers with arbitrary range
fixed accuracyfor real numbers depends, in part, on the size of the real number represented.
Back to Strings in Java (2). On to Representing Numbers in Java.
[Skip to Body]
Primary:
[Front Door]
[Current]
[Glance]
-
[Honesty]
[On Teaching and Learning]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Readings]
[Reference]
Misc:
[SamR]
[Java 1.5 API]
[Espresso]
[TAO of Java]
[CS152 2004F]
Disclaimer:
I usually create these pages on the fly
, which means that I rarely
proofread them and they may contain bad grammar and incorrect details.
It also means that I tend to update them regularly (see the history for
more details). Feel free to contact me with any suggestions for changes.
This document was generated by
Siteweaver on Tue Dec 6 09:47:19 2005.
The source to the document was last modified on Thu Aug 25 16:15:07 2005.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS152/2005F/Outlines/outline.10.html.
You may wish to
validate this document's HTML
;
;
Check with Bobby