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 for Programming
 Forum for Origin C
 working with very large integers
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

dcaplan

Canada
Posts

Posted - 08/03/2005 :  2:12:48 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.0 SR4
Operating System: win xp

I'm working with data that represents nanosecond time values from 0 up to 1 hour (in ns). Any ideas of how I can make it easier to deal with large integers (up to around 3600000000000) in Origin?
I don't need decimal precision, but enough so that I can count by nanosecond (ie 1,2,3...3600000000000...)...

Any suggestions?

If I can use these large integers in originC, is it possible to put values such as these in a visible worksheet? Or will the worksheet data always show up as doubles (without enough precision)?

Thanks,
- David Caplan

Hideo Fujii

USA
1582 Posts

Posted - 08/03/2005 :  5:52:39 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi David,

I tried to change the option for the "Upper Threshold Poer"
(Tools:Options, Numeric Format tab) to the maximum, i.e., 14.

Then, I entered 3600000000000 and 3600000000001 to consequtive
cells in a worksheet column. Though I don't recall the exact
precision limit, it seems the worksheet cells can hold enough
digits in your case. (say, data1_b[2]-data1_b[1] returns the
value correctly 1).

Did you try?

--Hideo Fujii
OriginLab

Go to Top of Page

verrallr@a

Canada
44 Posts

Posted - 08/04/2005 :  2:17:29 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Double Precision numbers can have 15 digits. Your numbers are only 13 digits. Therefore, ORIGEN can easily handle your numbers.

Richard.
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