mirror of
https://github.com/tiffany352/rink-rs
synced 2024-11-10 13:44:15 +00:00
Fix display bug with square units in conversions
This commit is contained in:
parent
e1b7e3ab5e
commit
8d635633b4
1 changed files with 1 additions and 1 deletions
|
@ -392,7 +392,7 @@ impl Context {
|
|||
let res: f64 = res.0.into();
|
||||
Ok(try!(self.eval_unit_name(left)).into_iter()
|
||||
.filter_map(|(k, v)| {
|
||||
let v = v + res as isize;
|
||||
let v = v * res as isize;
|
||||
if v != 0 {
|
||||
Some((k, v))
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue