In default mode, the following syntax is used in the answer field.
range:[-1,1]; (-0.75,0.25]
The following table shows the display attributes that you can specify.
Attribute |
Syntax |
Description |
Default Value |
---|---|---|---|
|
|
Indicates the desired minimum range. If the tickmarks attribute is specified, the range attribute is ignored. |
[-5,5] |
|
|
Indicates the lower bound ( |
Calculated by the NumberLine tool |
|
|
Indicates whether to display unlabeled tickmarks. Valid values are true or false. |
true |
- If an answer extends beyond the right side of the Answer box, it is wrapped to the next line, but it is still considered a single line so long as you do not press ENTER.
If no values are specified for the range attribute, the tool defaults to a range value of [-5,5]. For the range attribute and for the tickmarks attributes, the range or the interval size between tickmarks is determined automatically. The tool will attempt to use the specified range or interval size; however, if the specified range or interval size returns no usable images for the number line graph, the tool determines an appropriate range or interval size. If the tickmarks attribute is specified, a range attribute is unnecessary and is ignored. If the value of minor_tickmarks is not set to false, the tool populates as many minor tickmarks as possible.
Examples
The following tables show a few coding examples.
Code |
|
---|---|
Description |
|
Displayed to Students |
|
Code |
|
---|---|
Description |
|
Displayed to Students |
|
Code |
|
---|---|
Description |
|
Displayed to Students |
|