Converts plain or scientific notation to double
All 4 scenarios hold
Applies to the primitive and its wrapper alike.
expected outcome
broken scenario
| Scenario | double | Double | Converted value? |
|---|---|---|---|
| Plain decimal | 3.14159 | 3.14159 | 3.14159 |
| Leading zero | 0.1 | 0.1 | 0.1 |
| Scientific notation | 1.23e4 | 1.23e4 | 12300 |
| No decimal point | 123 | 123 | 123 |