Sep-05-2018, 09:55 PM
Good day,
So I am working on an assignment that calculates the position and velocity of an object at any given time. I get float(input) from the user on 3 data points as well as the time they wish to calculate to. My issue is we are assigned to truncate the calculation to 3 decimal places without using any built in functions of Python(i.e. round, print...). I have been looking for a couple days now and have not been able to find any examples of doing this manually.
if anyone could help I would greatly appreciate it. This is the last step I need to program and it is holding me up.
Thanks for your help.
So I am working on an assignment that calculates the position and velocity of an object at any given time. I get float(input) from the user on 3 data points as well as the time they wish to calculate to. My issue is we are assigned to truncate the calculation to 3 decimal places without using any built in functions of Python(i.e. round, print...). I have been looking for a couple days now and have not been able to find any examples of doing this manually.
if anyone could help I would greatly appreciate it. This is the last step I need to program and it is holding me up.
Thanks for your help.