Chapter 14. Mathematics

Computer languages are often judged on the basis of their support for various mathematical operations. That support determines a language's effectiveness in certain mathematics-intensive fields, like numerical analysis. This chapter explores Java's mathematics support, from basic concepts to classes. During that exploration, you'll see how well Java fares in its support for mathematics.

Java and Mathematics

Numeric types are the foundation of Java's mathematics support. A numeric type is either integer (a number with no fractional part) or floating-point (a number with a decimal point). This section explores numeric types, by focusing first on integer types and then on floating-point types. Also, when it comes to floating-point ...

Get Java™ 2 by Example, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.