Posted by cl on Friday, May 8, 2009 at 1:11pm.
I only know that taking this Conversion Chart, entering 6600 feet and changing to meters, I do get 2022.68.
http://www.sciencemadesimple.com/length_conversion.php
This is definitely not my area so I can not help you set up a formula, if that is what you need.
Sra
The problem MIGHT be here.
result = ((A(Original)) / ((B(Desired)) / Feet))
Some languages (like C and C++) do integer division unless you explicitly make it do "normal" division. In other words, if you do 5/2 in C the result will be the integer 2, not the "floating point number" 2.5.
I just figured it out: It's simpler than that.
You are declaring all of your numeric variables a LONG. LONG is an integer data type: it does not store anything to the right of a decimal point.
Try using DOUBLE (or better, DECIMAL, if your version supports it) for any numbers you need to have values to the right of the decimal point.
Related Questions
visual basic - Doing a units of measurement program dont know what the formula i...
Programming (Visual Basic) - Im seem to be having trouble with this Exercise. ...
Programming - Here is the question that I need help to write the code for the ...
visual basic - Im trying to get this program to average three number having a ...
visual basic - in visual basic, notes in a program which explain what the ...
PROGRAMMING - PLS, I NEED TO BE GUIDED ON HOW TO WRITE A SIMPLE PROGRAM IN BASIC...
C++ program - Please help am not very good at c program. Am supposed to create a...
visual basic - notes in a program which explain what the program is doing are ...
Visual Basic - Notes in a program which explains what the program is doing are ...
Visual Basic - Alright, so I'm trying to code a program to where I can plug ...
For Further Reading