(String text)
| 1484 | |
| 1485 | |
| 1486 | static protected float parseFloatOrPercent(String text) { |
| 1487 | text = text.trim(); |
| 1488 | if (text.endsWith("%")) { |
| 1489 | return Float.parseFloat(text.substring(0, text.length() - 1)) / 100.0f; |
| 1490 | } else { |
| 1491 | return Float.parseFloat(text); |
| 1492 | } |
| 1493 | } |
| 1494 | |
| 1495 | |
| 1496 | // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
no test coverage detected