Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert VAX G_FLOATING data

Status
Not open for further replies.

dansleight

IS-IT--Management
Dec 6, 2000
25
0
0
US
I'm trying to import tables of data from an OpenVMS system. I have files and layouts, and am having trouble with a datatype "G_FLOATING" (GFLOAT, G-FLOAT). Has anyone dealt with this? Does anyone know of a class available that converts this data type?
 
When exporting GFLOAT from the VMS write it as a string e.g it could be one of the followings:
"10000", "-123,456,789", "123.45+e6", "-.12345", "+900","3.141159", "900." etc
Read these values using the Double.TryParse() method:
Code:
CultureInfo MyCultureInfo = new CultureInfo("en-US");
string MyString = "123.45+e6";
Double res;
bool bParse =  Double.TryParse(MyString,Float, MyCultureInfo, out res);
-obislavu-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top