better handle non-integrals
This commit is contained in:
parent
9fded6856c
commit
b98640d54a
@ -207,6 +207,8 @@ impl epi::App for MathApp {
|
|||||||
BarChart::new(bars.clone()).color(Color32::BLUE).width(step);
|
BarChart::new(bars.clone()).color(Color32::BLUE).width(step);
|
||||||
plot_ui.bar_chart(bar_chart);
|
plot_ui.bar_chart(bar_chart);
|
||||||
area_list.push(digits_precision(area, 8))
|
area_list.push(digits_precision(area, 8))
|
||||||
|
} else {
|
||||||
|
area_list.push(0.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user