Jump to content
Sign in to follow this  
mausmb

TEdit Android DecimalSeparator 10.2.3 VS 10.3

Recommended Posts

Hi,

 

Any ideas how to enable EU decimal behaviour in Rio ? In both versions FloatToStr  returns number with ','

 

NumberPad
Delphi 10.2.3 behaviour  : you can enter ',' or '.' (comma is for EU right choice)
Delphi 10.3 behaviour : Android keyboard displays ',' and '.'., but Enter ',' or '.' is not possibile

 

DecimalNumberPad
Delphi 10.2.3 behaviour  : you can enter ',' or '.' (comma is for EU right choice)
Delphi 10.3 behaviour : Android keyboard displays ',' and '.'. Enter is  possibile. Entaer is ONLY for '.' , regardless that dispaly is with ',' 

 

Regards,

Marjan 

Share this post


Link to post

Another/same issue with TNumberBox. With local EU settings you can enter decimal number, but  on exit is without decimal ... exmaple enter 2,5 on exit is 25 ! 😞

 

br,

Marjan 

Share this post


Link to post
19 hours ago, David Heffernan said:

No such thing as EU decimal behaviour. Different countries in the EU have different locale settings. 

That's not true at all 🙂 Maybe "EU decimal behaviour is wrong expression...maybe "locale settings not working (properly) with TNumberBox and Tedit. TnumberBox not working at all (enter 2.5 and Tnumberbox converts to 25 !).

 

On Android :

1. Tnumberbox display decimal numbers with  comma (",").

2. when you enter decimal number you have to press DOT (".")  - that's contra intuitive for user when COMMA is displayed

3. When you enter 2.5 Tnumberbox converts to 25

 

There is such a thing :-) (The 22nd General Conference on Weights and Measures declared in 2003 that "the symbol for the decimal marker shall be either the point on the line or the comma on the line")

 

examples (all EU countries and Canada w/o UK - if UK is EU country 🙂 using COMMA as decimal separator):

https://docs.oracle.com/cd/E19455-01/806-0169/overview-9/index.html

https://en.wikipedia.org/wiki/Decimal_separator

 

 

 

 

TestNumbers.zip

Edited by mausmb

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×