Forums Register Login

Illegal conversion:

+Pie Number of slices to send: Send
i enter value (999999999.99) through java.text.DecimalFormat(#.##), but websphere 3.5.4
through exception(Illegal conversion: java.lang.NumberFormatException: 99999999E8 )
while tomcat 4.0 didn't.
any one have idea how to protect this error.
+Pie Number of slices to send: Send
All I can guess is the JVM you are using with WebShere is being a little more liberal with the internal representation of Decimal values then the JVM for Tomcat. The only thing I can suggest you try is putting the "strictfp" keyword on the class and see if that doesn't help.
+Pie Number of slices to send: Send
hi Trusiak,
thanks, but this also does not work, in replcement i use varchar and store as its into DB.
when i need calculation, first i parse and then calculate on server side.
otherwise i haven't any solution.
any way thanks a lot.
regards,
kamran.
look! it's a bird! it's a plane! It's .... a teeny tiny ad
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 676 times.
Similar Threads
Java Scrip not working in Safari.
a question about conversion
Constructors question
Credit card validation algorithm
Illegal conversion exception in websphere 3.5.4
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 07:42:45.