Skip to content

Commit

Permalink
add 1000x formatters
Browse files Browse the repository at this point in the history
  • Loading branch information
jr1221 committed Nov 29, 2024
1 parent 6c79ea5 commit 7098457
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@ impl FormatData {
value * 100.0
}

pub fn divide1000_d(value: f32) -> f32 {
value / 1000.0
}
pub fn divide1000_e(value: f32) -> f32 {
value * 1000.0
}

pub fn divide10000_d(value: f32) -> f32 {
value / 10000.0
}
Expand Down

0 comments on commit 7098457

Please sign in to comment.