diff options
Diffstat (limited to 'java/com/xagasoft/gats/GatsFloat.java')
-rw-r--r-- | java/com/xagasoft/gats/GatsFloat.java | 8 |
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 | ||
8 | import java.lang.Math; | 8 | import 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 | */ | ||
10 | public class GatsFloat extends GatsObject | 14 | public 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 | { |