MatrixObject::SetDigitMode

Contents

Description

Set the digit mode of the matrix

Syntax

BOOL SetDigitMode( int nDigitMode )

Parameters

nDigitMode
[input] There are 3 modes:
0 for default decimal digits
1 for decimal digits
2 for significant digits

Return

TRUE if successful; otherwise false

Examples

EX1

// Matrix must exist in the project
void MatrixObject_SetDigitMode_Ex1()
{
    MatrixPage mp = Project.MatrixPages(0);
    if(!mp)
        return;
    
    MatrixObject moMy(mp.GetName(), 0);
    if (moMy.SetDigitMode(0))
        out_str("Digit mode is set successfully!");
    else
        out_str("Digit mode is not set successfully!");
}

Remark

See Also

MatrixObject::GetDigitMode, MatrixObject::GetDigits, MatrixObject::SetDigits

header to Include

origin.h