# decimalbox with , and .

guisimon
217 7
http://www.artsys.fr

Hi all

is there a way to enable the user to put , and . to set a number in a decimalbox ?

thanks

delete retag edit

## 14 Replies

fmcypriano
612 1 7
http://felipecypriano.com...

Do you want to use both at the same time?

guisimon
217 7
http://www.artsys.fr

yes fmcypriano

it would be great

526 2 2 9

@ guisimon

Try the following code:

<doublebox format="##,##0.00" value="12345.67" />

guisimon
217 7
http://www.artsys.fr

it doesn't work

the decimal separator is always the .

526 2 2 9

After applying the format as mentioned in my previous post, the doublebox contains/displays as shown below:

1,234,567.69

Am using ZK Studio Version: 0.9.5 plugin in eclipse 3.4.2 and zk-bin-3.6.2.

Do you mean instead of 12345.45, you want to set as 12345,45?

guisimon
217 7
http://www.artsys.fr

i want to add to the user the possibility to set a double amount with a decimal separator wich is . and ,

regards

9393 3 7 16
http://www.oxitec.de/

Only a hint.
On german keyboards the numeric block have a ',' sign in it. For a correct decimal input we need a '.'
So it's more comfortable for a quicker input a user can use the numeric block with the ',' sign
that is internally interpreted/converted as a '.'
So, i'm interesting too in such a solution.

best
Stephan

henrichen
3869 2

So what was requested is when typing "12345,67" or "123456.67", they both will be interpreted as "12345.67"?

guisimon
217 7
http://www.artsys.fr

yes henri it is the request but i don't know if it is possible ?

27 1
www.meroving.co.hu

It is my alltime problem in most GUI (Delphi, Swing and others).
Mostly I need to write my own numeric input box hack for this, and this input box converts to actual accepted format, don't matter what locale currently used.
Similar problem is with date/time imput fields, to accept ISO and locale specific formats. This is the thing must to do in every platform.
Nice to localize everyting, but makes complications with old-school computer users.

[hide preview]