0

decimalbox with , and .

asked 2009-11-18 10:44:14 +0800

guisimon gravatar image 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 flag offensive retag edit

14 Replies

Sort by ยป oldest newest

answered 2009-11-19 04:59:45 +0800

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

Do you want to use both at the same time?

link publish delete flag offensive edit

answered 2009-11-19 05:19:09 +0800

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

yes fmcypriano

it would be great

link publish delete flag offensive edit

answered 2009-11-19 06:37:47 +0800

baskaraninfo gravatar image baskaraninfo
526 2 2 9

updated 2009-11-19 06:38:03 +0800

@ guisimon

Try the following code:

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

link publish delete flag offensive edit

answered 2009-11-19 09:25:07 +0800

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

Hi baskaraninfo

it doesn't work

the decimal separator is always the .

link publish delete flag offensive edit

answered 2009-11-19 22:51:49 +0800

baskaraninfo gravatar image baskaraninfo
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?

link publish delete flag offensive edit

answered 2009-11-20 03:23:06 +0800

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

hI BASKAR,

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

regards

link publish delete flag offensive edit

answered 2009-11-20 05:09:56 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2009-11-20 05:12:00 +0800

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

link publish delete flag offensive edit

answered 2009-11-23 00:28:50 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

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

link publish delete flag offensive edit

answered 2009-11-23 04:48:06 +0800

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

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

link publish delete flag offensive edit

answered 2009-11-23 10:13:53 +0800

YADA gravatar image YADA
27 1
www.meroving.co.hu

updated 2009-11-23 10:14:25 +0800

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.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-11-18 10:44:14 +0800

Seen: 1,511 times

Last updated: Jan 12 '17

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More