Java Types (i.e., Double Float) Help
I am trying to mimic a Visual Basic 6 program that uses single persion;
Single(single-precision floating-point)- 4 bytes
-3.402823E38 to -1.401298E-45 for negative values; 1.401298E-45 to 3.402823E38 for positive values.
I am having problems with calculations and think its because of Java's Type persion. Does anyone know of away to convert a Java float or a double into a VB equivalent single percision value?
Well if it helps a "float" corresponds to a single precision, and a "double" corresponds to a double precision value in Java.
They conform to the IEEE 754 standard. I don't know if VB 6 does. But if it does they should be compatible.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL