Subject:
|
Re: StringBuffer and double
|
Newsgroups:
|
lugnet.robotics.rcx.java
|
Date:
|
Fri, 21 Sep 2001 04:58:40 GMT
|
Viewed:
|
2858 times
|
| |
| |
In lugnet.robotics.rcx.java, Martin Egholm Nielsen writes:
> 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 routines for converting a double
> into a byte array!
Even better: send them to us and we'll add them to StringBuffer.
>
> Regards,
> Martin
>
> > 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?
|
|
Message is in Reply To:
| | 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
|
|
|
|