DataObject::GetDigitMode

It is recommended that you switch to the originpro package. PyOrigin is primarily for users who need to work with Origin version prior to 2021.

 

Description

Gets the display mode used for numbers in a column

Syntax

GetDigitMode()

Parameters

Return

The ColDigitMode index
0: DIGITS_FREE_FORM
1: DIGITS_DECIMAL
2: DIGITS_SIGNIFICANT

Examples

import PyOrigin
wks=PyOrigin.WorksheetPages('Book1').Layers(0)
Col=wks.Columns(0)
if Col.GetDigitMode()==0:
    print('Default Decimal')
elif Col.GetDigitMode()==1:
    print('Set Decimal Place')
elif Col.GetDigitMode()==2:  
    print('Significant Digits')

See Also

DataObject::SetDigitMode