[boskid][2.0.28] Exponential notation does not parse "Ae+B" form

This subforum contains all the issues which we already resolved.
User avatar
Hares
Filter Inserter
Filter Inserter
Posts: 618
Joined: Sat Oct 22, 2022 8:05 pm
Contact:

[boskid][2.0.28] Exponential notation does not parse "Ae+B" form

Post by Hares »

Steps to Reproduce
  1. Open number input field, like in constant combinator
  2. Enter "1e+5"
Expected:
Either of those:
  • The result value is 10,000 (1 * 10⁵)
  • The result value is 6 (1 * 10⁰ + 5)
  • The result value is 5 (ignored + 5)
Actual:
  • The result value is 0
See Also
Click to expand the recording
Why do consider this is as bug?
It's commonly used style of E-notation. I would say, it's more used than without sign, but it may be locale- or region-dependent.
Attachments
2024-12-28 02-22-25.mp4
(854.16 KiB) Downloaded 16 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3357
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [boskid][2.0.28] Exponential notation does not parse "Ae+B" form

Post by boskid »

Given that WolframAlpha accepts this notation i will consider it a valid expectation. Fixed for 2.0.29.
Post Reply

Return to “Resolved Problems and Bugs”