You are here: Symbol Reference > StatTools Namespace > Classes > TMtxAnova Class > TMtxAnova Properties > TMtxAnova.FmtString Property
Stats Master VCL
ContentsIndex
PreviousUpNext
TMtxAnova.FmtString Property

Numeric format for ANOVA table cells.

Pascal
property FmtString: String;

Defines the number format used for all TMtxANOVA floating-point values.

In the following example we do two-way ANOVA with two rows per group and set default format for numbers to '0.000000' i.e. 6 digits.

MtxAnova1.Data.SetIt(4,4,false,[1,2,3,4,
                                3,4,5,6,
                                1,5,11,13,
                                4,7,9,10]);
MtxAnova1.FmtString := '0.000000'; // < - - 6 digits
MtxAnova1.IsAnova1 := false; //do two-way ANOVA
MtxAnova1.Replications := 2; //two rows per "group"
MtxAnova1.ResultDest := StringGrid1;
MtxAnova1.Recalc;
MtxAnova1->Data->SetIt(4,4,false,OPENARRAY(double,(1,2,3,4,
                                3,4,5,6,
                                1,5,11,13,
                                4,7,9,10)));
MtxAnova1->FmtString = "0.000000"; // < - - 6 digits
MtxAnova1->IsAnova1 = false; //do two-way ANOVA
MtxAnova1->Replications = 2; //two rows per "group"
MtxAnova1->ResultDest = StringGrid1;
MtxAnova1->Recalc();
Examples on GitHub
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!