Computer Science Canada Acceleration calculations. |
Author: | JamesXm [ Sat Jun 24, 2006 1:06 pm ] | ||
Post subject: | Acceleration calculations. | ||
I need help with real numbers. When I run this program I wrote, rounded numbers appear. Try this: -start the program -hit a to calculate acceleration -intial speed = 0 final speed = 25 time = 10 -the answer appears as 2. but it should be 2.5 Any help is greatly appreciated. ![]()
|
Author: | Delos [ Sat Jun 24, 2006 1:15 pm ] | ||
Post subject: | Re: Acceleration calculations. | ||
JamesXm wrote:
Use '/' instead of 'div'. The div operator truncates remainders. |
Author: | upthescale [ Sat Jun 24, 2006 1:17 pm ] |
Post subject: | |
First of all at the top you have Two View.Sets. Why not just put the title in with the graphics? View.Set("graphics;title:...") second of all i think your problem is 'div' but im not to sur sorry |
Author: | JamesXm [ Sat Jun 24, 2006 1:18 pm ] |
Post subject: | |
Thank you. I have it working now. ![]() |