(11C) Pressure Units Conversion (ATM, PSI and PSF)
06-13-2018, 08:53 AM (This post was last modified: 06-13-2018 09:15 AM by Gamo.)
Post: #1
 Gamo Senior Member Posts: 700 Joined: Dec 2016
(11C) Pressure Units Conversion (ATM, PSI and PSF)
Program to convert three type of pressure units between any one of ATM, PSI and PSF.

[A] ATM (Atmospheric Pressure)
[B] PSI (Pound-force per square inch)
[C] PSF (Pound-force per square foot)

Example: Using FIX 4 and on User Mode f [USER]

Convert 1 ATM to PSI
1 [A] display 0.0000
[B] display 14.6959

Convert 40 PSI to ATM
40 [B] display 0.0000
[A] display 2.7218

Convert 1100 PSF to ATM
1100 [C] display 0.0000
[A] display 0.5198

Program: Pressure Units Conversion (ATM, PSI and PSF)
Code:
 LBL A  // ATM 101325 x 0 X=Y GTO 1 R↓ STO 0 CLx RTN --------------------------------------------------------------------------- LBL B  //  PSI 6894.7572   // Decimal point between 4 and 7 x 0 X=Y GTO 1 R↓ STO 0 CLx RTN ----------------------------------------------------------------------------- LBL C  //  PSF 47.88   // Decimal point between 7 and 8 x 0 X=Y GTO 1 R↓ STO 0 CLx RTN --------------------------------------------------------------------------- LBL 1 RCL 0 LSTx ÷ RTN

Gamo
 « Next Oldest | Next Newest »

 Messages In This Thread (11C) Pressure Units Conversion (ATM, PSI and PSF) - Gamo - 06-13-2018 08:53 AM RE: (11C) Pressure Units Conversion (ATM, PSI and PSF) - Dieter - 06-13-2018, 12:55 PM RE: (11C) Pressure Units Conversion (ATM, PSI and PSF) - Gamo - 06-14-2018, 01:20 AM

User(s) browsing this thread: 1 Guest(s)