Skip to content

NumSigFigs: Answer test results

This page exposes the results of running answer tests on STACK test cases. This page is automatically generated from the STACK unit tests and is designed to show question authors what answer tests actually do. This includes cases where answer tests currentl fail, which gives a negative expected mark. Comments and further test cases are very welcome.

NumSigFigs

Test
?
Student response
Teacher answer
Opt
Mark
Answer note
Basic tests
NumSigFigs
3.141
3.1415927
-1 STACKERROR_OPTION.
TEST_FAILED
The answer test failed to execute correctly: please alert your teacher. Missing option when executing the test.
NumSigFigs
1/0
3
3
-1 ATNumSigFigs_STACKERROR_SAns.
NumSigFigs
0
1/0
3
-1 ATNumSigFigs_STACKERROR_TAns.
NumSigFigs
0
0
1/0
-1 ATNumSigFigs_STACKERROR_Opt.
NumSigFigs
0
1
(
-1 STACKERROR_OPTION.
TEST_FAILED
The answer test failed to execute correctly: please alert your teacher. Option field is invalid. You have a missing right bracket ) in the expression: (.
NumSigFigs
(
1
1
-1 ATNumSigFigsTEST_FAILED-Empty SA.
The answer test failed to execute correctly: please alert your teacher. Attempted to execute an answer test with an empty student answer, probably a CAS validation problem when authoring the question.
NumSigFigs
1
3
pi
-1 ATNumSigFigs_STACKERROR_not_integer.
The answer test failed to execute correctly: please alert your teacher.
NumSigFigs
1
3
[3,x]
-1 ATNumSigFigs_STACKERROR_not_integer.
The answer test failed to execute correctly: please alert your teacher.
NumSigFigs
1
3
[1,2,3]
-1 ATNumSigFigs_STACKERROR_list_wrong_length.
The answer test failed to execute correctly: please alert your teacher.
NumSigFigs
1
3
-1 STACKERROR_OPTION.
TEST_FAILED
The answer test failed to execute correctly: please alert your teacher. Missing option when executing the test.
NumSigFigs
pi
pi
4
0 ATNumSigFigs_NotDecimal.
Your answer should be a decimal number, but is not!
Edge cases
NumSigFigs
0
0
2
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
NumSigFigs
0
0
1
1
NumSigFigs
0.0
0
1
1
NumSigFigs
0.0
0
2
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
NumSigFigs
0
0.0
2
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
NumSigFigs
0.0
0.0
2
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
NumSigFigs
0.00
0.00
2
1
Large numbers
NumSigFigs
5.4e21
5.3e21
2
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
5.3e21
5.3e21
2
1
NumSigFigs
5.3e22
5.3e22
2
1
NumSigFigs
5.3e20
5.3e22
2
0 ATNumSigFigs_VeryInaccurate.
NumSigFigs
6.02214086e23
6.02214086e23
9
1
NumSigFigs
6.0221409e23
6.02214086e23
9
0 ATNumSigFigs_WrongDigits. ATNumSigFigs_Inaccurate.
Your answer contains the wrong number of significant digits. The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
6.02214087e23
6.02214086e23
9
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
6.02214085e23
6.02214086e23
9
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
5.3910632e-44
5.3910632e-44
8
1
NumSigFigs
5.391063e-44
5.3910632e-44
8
0 ATNumSigFigs_WrongDigits. ATNumSigFigs_Inaccurate.
Your answer contains the wrong number of significant digits. The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
5.3910631e-44
5.3910632e-44
8
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
5.3910633e-44
5.3910632e-44
8
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
1.61622938e-35
1.61622938e-35
9
1
NumSigFigs
1.6162294e-35
1.61622938e-35
9
0 ATNumSigFigs_WrongDigits. ATNumSigFigs_Inaccurate.
Your answer contains the wrong number of significant digits. The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
1.61622939e-35
1.61622938e-35
9
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
1.61622937e-35
1.61622938e-35
9
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
1.2345e82
1.2345e82
5
1
NumSigFigs
1.2346e82
1.2345e82
5
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
1.2344e82
1.2345e82
5
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
No trailing zeros.
NumSigFigs
1.234
4
1
0 ATNumSigFigs_WrongDigits. ATNumSigFigs_Inaccurate.
Your answer contains the wrong number of significant digits. The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
3.141
3.1415927
3
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
NumSigFigs
3.141
3.1415927
4
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
3.146
3.1415927
4
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
3.147
3.1415927
4
0 ATNumSigFigs_VeryInaccurate.
NumSigFigs
3.142
3.1415927
4
1
NumSigFigs
3.142
pi
4
1
NumSigFigs
3141
3.1415927
4
0 ATNumSigFigs_VeryInaccurate.
NumSigFigs
0.00123
0.001234567
3
1
NumSigFigs
1.23e-3
0.001234567
3
1
NumSigFigs
138*10^-3
138*10^-3
3
1
NumSigFigs
-138*10^-3
-138*10^-3
3
1
NumSigFigs
138*10^-3
-138*10^-3
3
0 ATNumSigFigs_WrongSign.
Your answer has the wrong algebraic sign.
NumSigFigs
1.38*10^-1
138*10^-3
3
1
NumSigFigs
1.24e-3
0.001234567
3
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
1.235e-3
0.001234567
4
1
NumSigFigs
1000
999
2
1 ATNumSigFigs_WithinRange.
NumSigFigs
1E3
999
2
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
NumSigFigs
-100
-149
1
1
NumSigFigs
-0.05
-0.0499
1
1
NumSigFigs
-(0.05)
-0.0499
1
1
NumSigFigs
1170
1174.34
3
1
NumSigFigs
61300
61250
3
1
Previous tricky case
NumSigFigs
0.1667
0.1667
4
1
NumSigFigs
0.1666
0.1667
4
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
0.1663
0.1667
4
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
0.1662
0.1667
4
0 ATNumSigFigs_VeryInaccurate.
NumSigFigs
0.166
0.1667
4
0 ATNumSigFigs_WrongDigits. ATNumSigFigs_VeryInaccurate.
Your answer contains the wrong number of significant digits.
NumSigFigs
0.16667
0.1667
4
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
Negative numbers
NumSigFigs
-3.141
-3.1415927
4
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
-3.141
-3.1415927
3
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
NumSigFigs
-3.141
-3.1415927
4
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
-3.142
-3.1415927
4
1
NumSigFigs
3.142
-3.1415927
4
0 ATNumSigFigs_WrongSign.
Your answer has the wrong algebraic sign.
NumSigFigs
-3.142
3.1415927
4
0 ATNumSigFigs_WrongSign.
Your answer has the wrong algebraic sign.
NumSigFigs
-3.149
3.1415927
4
0 ATNumSigFigs_WrongSign. ATNumSigFigs_VeryInaccurate.
Your answer has the wrong algebraic sign.
NumSigFigs
2.15
75701719/35227192
3
1
Round teacher answer
NumSigFigs
0.0499
0.04985
3
1
NumSigFigs
0.0498
0.04985
3
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
0.0498
0.04975
3
1
NumSigFigs
0.0497
0.04975
3
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
0.0499
0.0498
3
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
Final zeros after the decimal are significant.
NumSigFigs
1.5
1.500
3
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
NumSigFigs
1.50
1.500
3
1
NumSigFigs
1.500
1.500
3
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
NumSigFigs
245.0
245
3
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
Too few digits
NumSigFigs
180
178.35
3
0 ATNumSigFigs_WithinRange. ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
33
33.1558
3
0 ATNumSigFigs_WrongDigits. ATNumSigFigs_Inaccurate.
Your answer contains the wrong number of significant digits. The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
Mixed options
NumSigFigs
3.142
3.1415927
[4,3]
1
NumSigFigs
3.143
3.1415927
[4,3]
1
NumSigFigs
3.150
3.1415927
[4,3]
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
3.211
3.1415927
[4,3]
0 ATNumSigFigs_VeryInaccurate.
NumSigFigs
3.1416
3.1415927
[4,3]
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
NumSigFigs
0.1666
0.1667
[4,3]
1
NumSigFigs
180
178.35
[3,1]
1 ATNumSigFigs_WithinRange.
NumSigFigs
33
33.1558
[3,1]
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
NumSigFigs
1.500
1.5
[3,1]
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
NumSigFigs
245.0
245
[3,1]
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
NumSigFigs
12345.7
12345.654321
[6,6]
1
NumSigFigs
12345.7
12345.654321
[6,3]
1
NumSigFigs
12300.0
12345.654321
[6,3]
1
NumSigFigs
12400.0
12345.654321
[6,3]
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
13500.0
12345.654321
[6,3]
0 ATNumSigFigs_VeryInaccurate.
NumSigFigs
12000.0
12345.654321
[6,2]
1
NumSigFigs
13000.0
12345.654321
[6,2]
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
11000.0
12345.654321
[6,2]
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
Zero option and trailing zeros
NumSigFigs
0.0010
0
[1,0]
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
NumSigFigs
0.0010
0
[2,0]
1
NumSigFigs
0.0010
0
[3,0]
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
NumSigFigs
0.001
0
[1,0]
1
NumSigFigs
0.001
0
[2,0]
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
NumSigFigs
0.00100
null
[2,0]
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
NumSigFigs
0.00100
null
[3,0]
1
NumSigFigs
0.00100
null
[4,0]
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
NumSigFigs
5.00
null
[2,0]
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
NumSigFigs
5.00
null
[3,0]
1
NumSigFigs
5.00
null
[4,0]
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
NumSigFigs
100
0
[1,0]
1
NumSigFigs
100
0
[2,0]
1 ATNumSigFigs_WithinRange.
NumSigFigs
100
0
[3,0]
1 ATNumSigFigs_WithinRange.
NumSigFigs
100
0
[4,0]
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
NumSigFigs
10.0
0
[2,0]
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
NumSigFigs
10.0
0
[3,0]
1
NumSigFigs
10.0
0
[4,0]
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
NumSigFigs
0
0
[1,0]
1
NumSigFigs
0
0
[2,0]
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
NumSigFigs
0.00
0
[1,0]
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
NumSigFigs
0.00
0
[2,0]
1
NumSigFigs
0.00
0
[3,0]
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
NumSigFigs
0.00
0
[4,0]
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
Condone too many sfs.
NumSigFigs
8.250
8.250
[4,-1]
1
NumSigFigs
8.25
8.250
[4,-1]
0 ATNumSigFigs_WrongDigits.
Your answer contains the wrong number of significant digits.
NumSigFigs
8.250000
8.250
[4,-1]
1
NumSigFigs
8.250434
8.250
[4,-1]
1
NumSigFigs
82.4
82
[2,-1]
1
NumSigFigs
82.5
82
[2,-1]
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
83
82
[2,-1]
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
1/7 = 0.142857142857...
NumSigFigs
0.1430
1/7
[4,-1]
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
0.1429
1/7
[4,-1]
1
NumSigFigs
0.1428
1/7
[4,-1]
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
0.143
1/7
[4,-1]
0 ATNumSigFigs_WrongDigits. ATNumSigFigs_Inaccurate.
Your answer contains the wrong number of significant digits. The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
0.14284
1/7
[4,-1]
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
0.14285
1/7
[4,-1]
1
NumSigFigs
0.14286
1/7
[4,-1]
1
NumSigFigs
0.14291
1/7
[4,-1]
1
NumSigFigs
0.14294
1/7
[4,-1]
1
NumSigFigs
0.14295
1/7
[4,-1]
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
0.142
1/7
[2,-1]
1
NumSigFigs
0.14290907676
1/7
[2,-1]
1
NumSigFigs
0.143
1/7
[2,-1]
1
NumSigFigs
0.1433333
1/7
[2,-1]
1
NumSigFigs
0.144
1/7
[2,-1]
1
NumSigFigs
0.145
1/7
[2,-1]
1
NumSigFigs
0.146
1/7
[2,-1]
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
Logarithms, numbers and surds
NumSigFigs
1.279
ev(lg(19),lg=logbasesimp)
4
1
NumSigFigs
3.14
pi
3
1
NumSigFigs
3.15
pi
3
0 ATNumSigFigs_Inaccurate.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
NumSigFigs
1.73205
sqrt(3)
6
1
No support for matrices!
NumSigFigs
matrix([0.33,1],[1,1])
matrix([0.333,1],[1,1])
2
-1 ATNumSigFigs_NotDecimal.
Your answer should be a decimal number, but is not!
NumSigFigs
3.1415
matrix([0.333,1],[1,1])
2
-1 TEST_FAILED
TEST_FAILED
The answer test failed to execute correctly: please alert your teacher. sigfigsfun(x,n,d) requires a real number, or a list of real numbers, as a first argument. Received: matrix([0.333,1],[1,1])
Teacher uses dispsf
NumSigFigs
1.50
dispsf(1.500,3)
3
1
NumSigFigs
1.50
dispdp(1.500,3)
3
1