sdxmessaging / ui-widgets

Build powerful form inputs/outputs with mithril and streams.
MIT License
4 stars 1 forks source link

Negative Currency Input - Incorrect Units #158

Closed MichaelPastuch closed 7 months ago

MichaelPastuch commented 7 months ago

Entering a value of (1.23) or -1.23 to the currency input currenty sets a value of -77 units. The negative component is only applied to the pounds value resulting in a positive pence "subtracting" from the negative currency.

MichaelPastuch commented 7 months ago
CleanShot 2024-04-11 at 10.13.53.png

Latest build results when entering -1.23.

CleanShot 2024-04-11 at 10.13.04.png

For good measure, I also tested the maximum safe integer.