sosauce / CuteCalc

CuteCalc is a simple,lightweight and open-source calculator app for Android.
GNU General Public License v3.0
121 stars 9 forks source link

comma without a zero #68

Closed heykanspor closed 2 months ago

heykanspor commented 2 months ago

hi, when i not type a zero before comma it gives an error. i tried it with the latest version.

sosauce commented 2 months ago

Hello, I need to see that with the guy who wrote the maths library 😁

heykanspor commented 2 months ago

hi, the another problem.

Screenshot_20240816-233340 Screenshot_20240816-233333

sosauce commented 2 months ago

This is normal, see issues #66 for more explanation

notKamui commented 2 months ago

hi, when i not type a zero before comma it gives an error. i tried it with the latest version.

@heykanspor @sosauce .5 is in no way a standardised notation for floating point numbers. Please write 0.5. I will NOT support non standard numerical notation.

@sosauce You could pretreat the input string: if the character before the dot/comma is not a digit, you could insert a 0 there.

TLDR: this is basically not an issue.

sosauce commented 2 months ago

Yeah I was expecting you to say that, I wouldn't have bothered to ask anyways