- #1
eNathan
- 352
- 2
Hello. I am making a physics calculator, and I have to make a conversion Unit for the program.
I need to know this (as an example)
I need to convert Kilometers per hour to Meters per second. But no the usual way. I know that the conversion factor is 0.278 but I need to convert the "distance units" and the "time units" separately. Originally I though that I can do this.
mps = kmph *1000 / 60
I simply multiply by 1000 to convert the KM to M, and then I divide by 60 to convert the Hours to seconds. This was way off and I have no idea how to do this.
Any ideas of how to convert these units without using the conversion factor of .278?
I need to know this (as an example)
I need to convert Kilometers per hour to Meters per second. But no the usual way. I know that the conversion factor is 0.278 but I need to convert the "distance units" and the "time units" separately. Originally I though that I can do this.
mps = kmph *1000 / 60
I simply multiply by 1000 to convert the KM to M, and then I divide by 60 to convert the Hours to seconds. This was way off and I have no idea how to do this.
Any ideas of how to convert these units without using the conversion factor of .278?