From e2174fc9f8da8fa9c8fcd598f378320eb3d432a6 Mon Sep 17 00:00:00 2001 From: Kuba Groblewski Date: Wed, 23 Oct 2024 22:27:25 +0200 Subject: [PATCH] gas id float fix --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/common/gas.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 74413f6..0f111a3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -168,7 +168,7 @@ checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" [[package]] name = "dive-deco" -version = "4.3.1" +version = "4.3.2" dependencies = [ "criterion", ] diff --git a/Cargo.toml b/Cargo.toml index 8843ccb..96c37d9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dive-deco" -version = "4.3.1" +version = "4.3.2" edition = "2021" license = "MIT" description = "A dive decompression models library (Buehlmann ZH-L 16C)" diff --git a/src/common/gas.rs b/src/common/gas.rs index 083fa46..6a115ad 100644 --- a/src/common/gas.rs +++ b/src/common/gas.rs @@ -24,7 +24,7 @@ pub enum InertGas { impl std::fmt::Display for Gas { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "{}/{}", self.o2_pp * 100., self.he_pp * 100.) + write!(f, "{:.0}/{:.0}", self.o2_pp * 100., self.he_pp * 100.) } }