DIGITS
Name:
Type:
Purpose:
Strip out the individual digits for the integer portion of a number.
Description:
Given the number 1423.36, DIGITS will return a vector containing the
values 1, 4, 2, and 3.
The negative sign is ignored for negative numbers. That is, DIGITS
will return the same values for 1423 and -1423.
This command is a utility function that is used by the Dataplot
10-step macros for analyzing 2-level factorial designs.
Syntax:
LET <y> = DIGITS <a>
where <a> is a parameter or number;
and <y> is a vector where the digits will be saved.
Examples:
LET Y = DIGITS 58.6
LET Y = DIGITS A
Default:
Synonyms:
Related Commands:
|
DEXPLOT.DP
|
=
|
Dataplot macro for performing a 10-step analysis of 2-level
factorial designs.
|
|
YATES
|
=
|
Perform a Yates analysis.
|
Applications:
Analysis of Factorial Designs
Implementation Date:
Program:
SKIP 25
READ BOXSPRIN.DAT Y
SKIP 0
YATES Y
.
SET WRITE DECIMALS 0
LOOP FOR K = 1 1 8
ROW LIMITS K K
READ PARAMETER DPST1F.DAT IVAL
LET D^K = DIGITS IVAL
PRINT "K = ^K"
PRINT D^K
END OF LOOP
The following output is generated
K = 1
---------------
D1
---------------
1
K = 2
---------------
D2
---------------
1
3
K = 3
---------------
D3
---------------
2
K = 4
---------------
D4
---------------
3
K = 5
---------------
D5
---------------
1
2
K = 6
---------------
D6
---------------
1
2
3
K = 7
---------------
D7
---------------
2
3
|
Privacy
Policy/Security Notice
Disclaimer |
FOIA
NIST is an agency of the U.S.
Commerce Department.
Date created: 01/31/2015
Last updated: 01/31/2015
Please email comments on this WWW page to
[email protected].
|