0

decimalbox convert string to double

asked 2008-12-04 03:27:49 +0800

hello2222 gravatar image hello2222
103 3

i have a decimalbox <decimalbox onChanging="copy.value = event.value"/>
"event.value" is a string, how do i convert it to a double?

Many Thanks!

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2008-12-04 11:49:29 +0800

PeterKuo gravatar image PeterKuo
481 2

just google "java double from string"

http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Double.html

link publish delete flag offensive edit

answered 2008-12-04 14:31:22 +0800

ziccardi gravatar image ziccardi
321 7

...
and pay attention to rounding issues...

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: 2008-12-04 03:27:49 +0800

Seen: 341 times

Last updated: Dec 04 '08

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