The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 numer format
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ovince

Yugoslavia
Posts

Posted - 11/09/2006 :  2:53:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,

I have an ASCII files. One column contain numbers like

172768983471095000
75094093117521900
75094093180436400
75094093226573800
75094093260128200
75094093297876900

When imported this numbers change into scientific format like

1.72769E17
7.50941E16
7.50941E16
7.50941E16
7.50941E16
7.50941E16


It would be not disaster but when expotring the file it keeps the scientific format. Is there some option to avoid this?


Thanks
Oliver

Deanna

China
Posts

Posted - 11/09/2006 :  8:32:18 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Oliver. I think you can turn off the scientific notation before exporting the column. This could be done by:
1. From Origin menu, choose Tools: Option.
2. In the Numeric Format tab of the Options dialog, change the Upper Threshold Power to 18 (if the largest number is 1.72769E17 as you have posted here.). Click OK to close the dialog.
3. You would be asked: "Save as Origin's start up Options?" Please click OK.
4. Then you can export the data with Origin.

If you want, you can reset the Options after the exportation.

Deanna
OriginLab Technical Services
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 11/09/2006 :  9:50:06 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Oliver,

You can do that via Origin C with LabTalk's system.numeric.sigDigitsU property...

int susave = LabTalk.system.numeric.sigdigitsu;
LabTalk.system.numeric.sigdigitsu = 18;
Worksheet wks = Project.ActiveLayer();
string strFile = GetSaveAsBox("*.dat");
wks.ExportASCII(strFile, WKS_EXPORT_ALL);
LabTalk.system.numeric.sigdigitsu = susave;

Mike Buess
Origin WebRing Member
Go to Top of Page

ovince

Yugoslavia
Posts

Posted - 11/09/2006 :  11:02:10 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
thank you both Deanna, Mike
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000