aboutsummaryrefslogtreecommitdiff
path: root/java/com/xagasoft/gats/GatsFloat.java
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-01-16 02:31:34 +0000
committerMike Buland <eichlan@xagasoft.com>2012-01-16 02:31:34 +0000
commite3efaf2a9ad82deb1644ccab8c1469719a0c5b65 (patch)
treedc1b3f3c787dd5900e80aaeca1a46cd9696d230b /java/com/xagasoft/gats/GatsFloat.java
parent66f972a288916824d9001c1931bf4c5db1bed82b (diff)
downloadlibgats-e3efaf2a9ad82deb1644ccab8c1469719a0c5b65.tar.gz
libgats-e3efaf2a9ad82deb1644ccab8c1469719a0c5b65.tar.bz2
libgats-e3efaf2a9ad82deb1644ccab8c1469719a0c5b65.tar.xz
libgats-e3efaf2a9ad82deb1644ccab8c1469719a0c5b65.zip
Lots of documentation, an example program, and also some visibility cleanup.
Diffstat (limited to 'java/com/xagasoft/gats/GatsFloat.java')
-rw-r--r--java/com/xagasoft/gats/GatsFloat.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/java/com/xagasoft/gats/GatsFloat.java b/java/com/xagasoft/gats/GatsFloat.java
index d70f910..3d7583e 100644
--- a/java/com/xagasoft/gats/GatsFloat.java
+++ b/java/com/xagasoft/gats/GatsFloat.java
@@ -7,6 +7,10 @@ import java.io.ByteArrayOutputStream;
7 7
8import java.lang.Math; 8import java.lang.Math;
9 9
10/**
11 * Represents a simple java double value. This does not represent an arbitrary
12 * precision floating point number, a class to handle that is forthcoming.
13 */
10public class GatsFloat extends GatsObject 14public class GatsFloat extends GatsObject
11{ 15{
12 double dValue = 0.0; 16 double dValue = 0.0;
@@ -40,7 +44,7 @@ public class GatsFloat extends GatsObject
40 return GatsObject.FLOAT; 44 return GatsObject.FLOAT;
41 } 45 }
42 46
43 public void read( InputStream is, char cType ) throws java.io.IOException 47 void read( InputStream is, char cType ) throws java.io.IOException
44 { 48 {
45 if( cType == 'F' ) 49 if( cType == 'F' )
46 { 50 {
@@ -83,7 +87,7 @@ public class GatsFloat extends GatsObject
83 } 87 }
84 } 88 }
85 89
86 public void write( OutputStream os ) throws java.io.IOException 90 void write( OutputStream os ) throws java.io.IOException
87 { 91 {
88 if( dValue == 0.0 ) 92 if( dValue == 0.0 )
89 { 93 {