Subject:
|
StringBuffer and double
|
Newsgroups:
|
lugnet.robotics.rcx.java
|
Date:
|
Thu, 20 Sep 2001 19:40:28 GMT
|
Viewed:
|
2682 times
|
| |
| |
Hi,
I have just tried to do the following:
____SNIP____
double v = 1.23456
StringBuffer sb = new StringBuffer();
sb.append( v );
char[] cArray = sb.getChars();
____SNIP____
on my RCX with lejos 1.0.2.
The resulting string/char array has the length 15 and says:
<no str+double>
Why is that? is it because the StringBuffer hasn't been made
entirely yet?
Regards,
Martin E. Nielsen
|
|
Message has 1 Reply: | | Re: StringBuffer and double
|
| Hi myself, Gosh, you're stupid... :o) Ok, I didn't take a look into the StringBuffer.java before I answered: ____SNIP____ public StringBuffer append (double aDouble){ return append ("<no str+double>"); } ____SNIP____ Then, I won't delete my own (...) (23 years ago, 20-Sep-01, to lugnet.robotics.rcx.java)
|
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|