DataObject:SetDigitMode

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

Set the display mode used for numbers in a column.

Syntax

SetDigitMode(value)

Parameters

value
0: DIGITS_FREE_FORM
1: DIGITS_DECIMAL
2: DIGITS_SIGNIFICANT

Return

None

Examples

import PyOrigin
wks=PyOrigin.WorksheetPages('Book1').Layers(0)
Col=wks.Columns(0)
Col.SetDigitMode(1)
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::GetDigitMode