2010/1/26 Lars Helge Øverland larshe...@gmail.com
2010/1/26 Trí Trần Thanh tranthanhtr...@gmail.com
Tran Thanh Tri
HISP Viet Nam
Cell phone: +84903670967
Website: http://tringuyenvn.com
2010/1/25
Hi all, my way is easy and simple. Cast to Double and compare with new
Double(0). new Double(value).equal(new Double(0)) ? how do you think?
On 1/26/10, Bob Jolliffe bobjolli...@gmail.com wrote:
2010/1/26 Lars Helge Øverland larshe...@gmail.com
2010/1/26 Trí Trần Thanh
Hi Bob,
I might suggest just a small change.
^[0]*[\.,]?[0]*$
Escape the period and add a comma for some locales that use commas
instead of periods. I am not aware of other decimal points, perhaps a
semicolon?
I am a bit confused though about the concept here. Values in DHIS are
stored in the
I don't think a java.util.regex solution would be hugely more complicated.
One advantage is that all it expects is the string datavalue. If casting to
a double you might also need to catch a class caste exception to be on the
safe side. ie you have to ask is it a double first before you can ask
2010/1/26 Jason Pickering jason.p.picker...@gmail.com
Hi Bob,
I might suggest just a small change.
^[0]*[\.,]?[0]*$
Escape the period and add a comma for some locales that use commas
instead of periods. I am not aware of other decimal points, perhaps a
semicolon?
True. This is better.
2010/1/26 Bob Jolliffe bobjolli...@gmail.com
2010/1/26 Jason Pickering jason.p.picker...@gmail.com
Hi Bob,
I might suggest just a small change.
^[0]*[\.,]?[0]*$
Escape the period and add a comma for some locales that use commas
instead of periods. I am not aware of other decimal points,
True, not that many people are inclined but there are some of us that
find them quite useful. i suspect that many of the most common could
easily be populated as defaults, and developed by those that actually
need it.
I would see this as a huge advantage if implemented.
Let me list some of the
Feel free to write a blueprint...
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp
https://blueprints.launchpad.net/dhis2/+spec/regex-validation
Done.
Regards,
Jason
2010/1/26 Lars Helge Øverland larshe...@gmail.com:
Feel free to write a blueprint...
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to :
revno: 1337
committer: Lars Helge Oeverland larshe...@gmail.com
branch nick: trunk
timestamp: Mon 2010-01-25 15:30:51 +0100
message:
Improved DataValue.isZero
modified:
Tran Thanh Tri
HISP Viet Nam
Cell phone: +84903670967
Website: http://tringuyenvn.com
2010/1/25 nore...@launchpad.net
revno: 1337
committer: Lars Helge Oeverland
2010/1/26 Trí Trần Thanh tranthanhtr...@gmail.com
Tran Thanh Tri
HISP Viet Nam
Cell phone: +84903670967
Website: http://tringuyenvn.com
2010/1/25 nore...@launchpad.net
12 matches
Mail list logo