Convert Bar to PSI prssure

how to Convert Bar to PSI pressure using minimum ram.
i have a small ram micro controller with some bytes reserved.
any short method in c lan


 
1 bar = 14.5038 psi or (bar x 14.5038 = psi) or 0.0689475729 bars in 1 psi.
What range of values for bar do you get?
To what precision do you want the psi?
What are you going to do with with the psi value once you've got it?

I'm guessing you lack
- floating point hardware
- string conversion libraries
- a screen

i am using pressure sensor mpx4115a pressure sensor
It can compute pressure from 15 kp to 115 kp
1 out of 3 questions answered - needs work.

ok thanks
Just multiply by the conversion factor. It should be only 1-2 machine instructions. If you need to save RAM, you should look elsewhere.
Topic archived. No new replies allowed.