0
print("\033[2;89H ", force * math.sin(math.radians(degree)))

The force * math.sin(math.radians(degree) is what I needed to be rounded to 4 decimal places

lorenzozane
  • 1,214
  • 1
  • 5
  • 15
  • 2
    Does this answer your question? [How to round to 2 decimals with Python?](https://stackoverflow.com/questions/20457038/how-to-round-to-2-decimals-with-python) – lorenzozane Nov 24 '20 at 08:09
  • While the example is a `print()` call (formatting just for output), rounding for further processing given in the linked question is a different topic. – guidot Nov 24 '20 at 08:28

0 Answers0