summaryrefslogtreecommitdiffhomepage
path: root/java.html.markdown
diff options
context:
space:
mode:
authorRobert Rose <bertra97@gmail.com>2015-10-12 17:52:09 -0400
committerRobert Rose <bertra97@gmail.com>2015-10-12 17:52:09 -0400
commit26696b764b83ae34bb809405ecf5cfba615aad6a (patch)
tree8ab00aeb11ae4daac4607728198644617ff3c5ee /java.html.markdown
parenta811ee38e44ca5d25eaa385cd7a2de93a9d67056 (diff)
Revert "Updated Java tutorial with BigInteger and BigDecimal."
This reverts commit 8cb9e5395b2a21fe8e86455f5a5729a60435524c.
Diffstat (limited to 'java.html.markdown')
-rw-r--r--java.html.markdown30
1 files changed, 0 insertions, 30 deletions
diff --git a/java.html.markdown b/java.html.markdown
index 55daa5bb..67e5494e 100644
--- a/java.html.markdown
+++ b/java.html.markdown
@@ -95,13 +95,11 @@ public class LearnJava {
// Note: Java has no unsigned types.
// Float - Single-precision 32-bit IEEE 754 Floating Point
- // 2^-149 <= float <= (2-2^-23) * 2^127
float fooFloat = 234.5f;
// f or F is used to denote that this variable value is of type float;
// otherwise it is treated as double.
// Double - Double-precision 64-bit IEEE 754 Floating Point
- // 2^-1074 <= x <= (2-2^-52) * 2^1023
double fooDouble = 123.4;
// Boolean - true & false
@@ -117,34 +115,6 @@ public class LearnJava {
final double E;
E = 2.71828;
-
- // BigInteger - Immutable arbitrary-precision integers
- //
- // BigInteger is a data type that allows programmers to manipulate
- // integers longer than 64-bits. Integers are stored as an array of
- // of bytes and are manipulated using functions built into BigInteger
- //
- // BigInteger can be initialized using an array of bytes or a string.
-
- BigInteger fooBigInteger = new BigDecimal(fooByteArray);
-
-
- // BigDecimal - Immutable, arbitrary-precision signed decimal number
- //
- // A BigDecimal takes two parts: an arbitrary precision integer
- // unscaled value and a 32-bit integer scale
- //
- // BigDecimal allows the programmer complete control over decimal
- // rounding. It is recommended to use BigDecimal with currency values
- // and where exact decimal percision is required.
- //
- // BigDecimal can be initialized with an int, long, double or String
- // or by initializing the unscaled value (BigInteger) and scale (int).
-
- BigDecimal fooBigDecimal = new BigDecimal(fooBigInteger, fooInt);
-
-
-
// Strings
String fooString = "My String Is Here!";