Rounding to the nearest 10 or 100

Rounding to the nearest 10 or 100
Loading the math board and drawing, please wait…
2017-05-28 14:02
This example demonstrates how to use GeoGebra to round numbers to the nearest 10 or 100. Key math concepts include numerical approximation and rounding rules. Construction highlights the use of commands/objects like Line, Textfield, If, Text, Translate, Sequence. Suitable for middle school mathematics education to help students understand the concept and operation of numerical approximation.

GeoGebra Commands & Parameters

  1. Line(A, K) → f
  2. Textfield(inputtext) → InputBox1
  3. If(roundHundreds ≟ true, Sequence[Text[(10 * i), Element[list1, i / 10 + 1] + (adjusthorizontal, adjustvertical)], i, 0, 100, 10], Sequence[Text[(100 * inputHundreds) + i, Element[list1, i / 10 + 1] + (adjusthorizontal, adjustvertical)], i, 0, 100, 10]) → LabelsOriginal
  4. Text(inputnumber, PointToLocate + (adjusthorizontal, adjustvertical + 0.75)) → text1
  5. If(roundHundreds ≟ true, (inputnumber / 100, y(A)), ((inputnumber - (100 * inputHundreds)) / 10, y(A))) → PointDestination
  6. If(roundTens ≟ true, {inputnumber - inputOnes, inputnumber - inputOnes + 10}, {(100 * inputHundreds), (100 * inputHundreds) + 100}) → NewBounds1
  7. If(roundTens ≟ true, {Element[list1, inputTens + 1], Element[list1, inputTens + 2]}, {Element[list1, inputHundreds + 1], Element[list1, inputHundreds + 2]}) → list4
  8. Translate(MinPoint, Vector[(slideit * Vector[Element[list4, 1], A])]) → MinPoint'
  9. Translate(MaxPoint, Vector[(slideit * Vector[Element[list4, 2], K])]) → MaxPoint'
  10. If(roundTens ≟ true, Sequence[Text[Element[NewBounds1, 1] + i, Element[list1, i + 1] + (adjusthorizontal, adjustvertical)], i, 0, 10], Sequence[Text[Element[NewBounds1, 1] + (10 * i), Element[list1, i + 1] + (adjusthorizontal, adjustvertical)], i, 0, 10]) → LabelsNew
  11. If(roundTens ≟ true, (x(A) + inputOnes, y(A)), (x(A) + ((10 * inputTens) + inputOnes) / 10, y(A))) → PointDestinationNew
  12. Translate(L, Vector[PointDestination, PointDestinationNew]) → L'
  13. Translate(PointToLocate, Vector[(slideit1 * Vector[PointToLocate, PointDestination])]) → PointToLocate'
  14. Translate(PointToLocate', Vector[(slideit * Vector[PointToLocate', L'])]) → PointToLocate''
  15. Sequence((x(A) + i, y(A)), i, 0, 10) → list2
  16. Text(Element[NewBounds1, 1], MinPoint' + (adjusthorizontal, adjustvertical)) → boundlower
  17. Text(Element[NewBounds1, 2], MaxPoint' + (adjusthorizontal, adjustvertical)) → boundupper
  18. Text(inputnumber, PointToLocate' + (adjusthorizontal, adjustvertical + 0.75)) → text4
  19. Text(inputnumber, PointToLocate'' + (adjusthorizontal, adjustvertical + 0.75)) → text5
  20. If(inputnumber - Element[NewBounds1, 1] < Element[NewBounds1, 2] - inputnumber, Element[NewBounds1, 1], Element[NewBounds1, 2]) → roundwinner
  21. If(inputnumber - Element[NewBounds1, 1] > Element[NewBounds1, 2] - inputnumber, Element[NewBounds1, 1], Element[NewBounds1, 2]) → roundloser

AI Drawing Prompt Reference

Draw a number line from 0 to 100, marking points every 10 or 100 units. Users can input a number and find and mark the two closest points on the number line based on their chosen rounding method (to 10 or 100). The number line should also display the input number and the values of the two closest points.
The prompt above was compiled from the original drawing commands and is for reference only.