Skip to content

Conversation

@trappitsch
Copy link

@trappitsch trappitsch commented Oct 16, 2025

When working with vacuum instruments, Torr and millitorr are units that are very frequently used. This unit is to a high degree (was historically) equal to mmHg (see Wikipedia).

This PR adds Torr and mTorr as units of pressure with their defined conversion factors, i.e., 1 Torr = 1 atm / 760.

Also corrected a couple of typos in pressure.rs.

One question here: Would it be useful to add the correct definition of mmHg as well? See wikipedia here?

Copy link
Member

@thejpster thejpster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests checked out using Qalculate. Looks good to me.

@thejpster thejpster merged commit c10b8b2 into rust-embedded-community:master Oct 16, 2025
14 checks passed
@thejpster
Copy link
Member

Would it be useful to add the correct definition of mmHg as well?

If you think it's useful, I'm happy to see it added.

@trappitsch trappitsch deleted the add_torr_and_mtorr_for_pressures branch October 18, 2025 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants