
The following provides a general discussion of how numeric values are handled in Origin.
Contents |
Origin workbooks and matrix books support the following Data Types:
| Workbook | Matrix Book | Bytes | Range of Values |
|---|---|---|---|
|
double |
double |
8 |
±1.7E±308 (15 digits) |
|
real |
float |
4 |
±3.4E±38 (7 digits) |
|
short |
short |
2 |
-32,768 to 32,767 |
|
long |
int |
4 |
-2,147,483,648 to 2,147,483,647 |
|
char |
char |
1 |
-128 to 127 |
|
byte |
char, unsigned |
1 |
0 to 255 |
|
ushort |
short, unsigned |
2 |
0 to 65,535 |
|
ulong |
int, unsigned |
4 |
0 to 4,294,967,295 |
|
complex |
complex |
16 |
±1.7E±308 (15 digits), each 8 bytes |
For more information, see these topics:
When you import or type your data into a workbook or matrix book, Origin uses a combination of user-specified settings to determine how to display the data in each cell. Note, however, that what displays is merely a visual representation of the data value and that the actual data values are stored with the full precision allowed by the dataset's Data Type, as noted above. When you perform calculations, it is the actual data values that are used and not the displayed values.
For more information, see these topics:
If a workbook or matrix book contains data that exceed the cell (column) width, Origin displays values as series of pound signs (######). This is to avoid confusion caused by the truncated display of cell values. Cell values that display as ###### will revert to numbers when you enter cell editing mode.
This feature is controlled by a LabTalk numeric system variable (@wc) and can be toggled on and off, as needed. To toggle the # sign display on or off, open the Command Window and enter one of the following at the prompt:
| @wc = 0 <ENTER> | Default value. Display the # sign. |
| @wc = 1 <ENTER> | Turn off display of the # sign. |
If you do not see a change when you reactivate the worksheet or matrix, click the Refresh button.
To change the width of a cell (column):
or
When spreadsheet programs first appeared it was recognized that there was a need for a special number that was Not-A-Number which would - when used in a calculation - generate itself. Origin has such a number and its internal value is:
Because Origin recognizes this value as a special value, it can be used to enter a missing value into a worksheet (or matrix) and it can be used in calculations or scripts (for instance, to return a missing value unless some condition is met).
Origin displays missing values in a worksheet or matrix sheet as "--". However, you shouldn't confuse this display (output) with what you enter as a missing value (input).
|
Note: Only Data Type = Double(8) supports missing values. |
You can opt to display workbook or matrix book data in Decimal:1000, Scientific:1E3, Engineering:1k, and Decimal:1,000 notations. Apart from manually choosing to display workbook or matrix book data using scientific notation, you can also specify that when certain thresholds are crossed, the elected data display option is overridden and numbers are automatically displayed using scientific notation. By default, these scientific notation threshold values are set to 6 (upper) and -3 (lower). When upper and lower values are 6 and -3, respectively:
Controls for automatic display in scientific notation are located on the Numeric Format tab of the Options dialog box.
Origin interprets dates based upon the Gregorian Calendar. Time is interpreted in hours:minutes:seconds. Origin supports the following date ranges:
Origin's mathematical system for dates and time is based on Astronomical Julian Day Numbers. This defines -4712 January 1, 12 hours Greenwich Mean Time as zero. Origin uses a 12 hour offset in order to have 0 hours coincide with midnight. No assumptions are made about time zones or any time shifting scheme (such as Daylight Savings).
In this system, for example...
... has an Origin Julian Day Number of ...
Add .5 (Origin's 12 hour offset) to get the Astronomical Julian Day Number of 2450976.390984.
For more information, see these topics: