A
AGP
I thought i had this down but i think i am missing something. i read in a
series of strings in CSV format that are actually numbers. i do something
like
Dim gVal as Double
Dim sData as String = "77.05788457660967"
gVal = Double.Parse(gArrCoords(0),
Globalization.NumberFormatInfo.InvariantInfo)
Debug.printline(gVal)
and this is what i get printed
77.057884576609666
This one seems to be small but i thought the double was supposed to hold the
exact number. I think the conversion has to do with the accuarcy built into
the format type but I cant figure out how to convert the exact number.
Suppose this was a scientific app that required extreme accuarcy in reading
the source data. How would i read it or assign it differently?
tia
AGP
series of strings in CSV format that are actually numbers. i do something
like
Dim gVal as Double
Dim sData as String = "77.05788457660967"
gVal = Double.Parse(gArrCoords(0),
Globalization.NumberFormatInfo.InvariantInfo)
Debug.printline(gVal)
and this is what i get printed
77.057884576609666
This one seems to be small but i thought the double was supposed to hold the
exact number. I think the conversion has to do with the accuarcy built into
the format type but I cant figure out how to convert the exact number.
Suppose this was a scientific app that required extreme accuarcy in reading
the source data. How would i read it or assign it differently?
tia
AGP