We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b6bd08 commit 56a81e0Copy full SHA for 56a81e0
src/axis.rs
@@ -145,14 +145,6 @@ impl Iterator for TickSteps {
145
}
146
147
148
-/**
149
-This function exists to fix subtle floating point numbers like 0.30000000000000004
150
-In the longer-term is should be moved to something in the presentation layer
151
-*/
152
-fn round(x: f64) -> f64 {
153
- (x * 1000000000000000.0).round() / 1000000000000000.0
154
-}
155
-
156
fn generate_ticks(min: f64, max: f64, step_size: f64) -> Vec<f64> {
157
// "fix" just makes sure there are no floating-point errors
158
fn fix(x: f64) -> f64 {
0 commit comments