2.2.4.28.10 MatrixObject::GetDigits

Description

Get the number of digits of a particular digit mode of the matrix

Syntax

int GetDigits( )

Parameters

Return

The number of digits set in a particular mode

Examples

EX1

// Matrix must exist in the project
void MatrixObject_GetDigits_Ex1()
{
    MatrixPage mp = Project.MatrixPages(0);
    if(!mp)
        return;
    
    MatrixObject moMy(mp.GetName(), 0);
    if (moMy.SetDigitMode(2))
        out_str("Digit mode is set successfully!");
    else
        out_str("Digit mode is not set successfully!");
    printf("the number of significant digits are %d", moMy.GetDigits());  
}

Remark

Get the number of digits of a particular digit mode of the matrix.

See Also

MatrixObject::GetDigitMode, MatrixObject::SetDigitMode, MatrixObject::SetDigits

Header to Include

origin.h