| 370 | } |
| 371 | |
| 372 | int getDigitCount(float value) |
| 373 | { |
| 374 | int count = 0; |
| 375 | |
| 376 | float v = std::abs(value); |
| 377 | |
| 378 | if (v<1.0f) { |
| 379 | if (v>FLT_EPSILON) { |
| 380 | while(v<1) { |
| 381 | v = v * 10.0f; |
| 382 | count++; |
| 383 | } |
| 384 | } |
| 385 | } else { |
| 386 | int num = int(value); |
| 387 | while (num) { |
| 388 | num = num/10; |
| 389 | count++; |
| 390 | } |
| 391 | } |
| 392 | |
| 393 | return count; |
| 394 | } |
| 395 | |
| 396 | void chart2d_impl::generateTickLabels() |
| 397 | { |
nothing calls this directly
no outgoing calls
no test coverage detected