To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.javaOpen lugnet.robotics.rcx.java in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / Java / 124
123  |  125
Subject: 
Re: StringBuffer and double
Newsgroups: 
lugnet.robotics.rcx.java
Date: 
Thu, 20 Sep 2001 19:45:20 GMT
Viewed: 
2683 times
  
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!

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 has 1 Reply:
  Re: StringBuffer and double
 
(...) Even better: send them to us and we'll add them to StringBuffer. (...) (23 years ago, 21-Sep-01, to lugnet.robotics.rcx.java)

Message is in Reply To:
  StringBuffer and double
 
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 (...) (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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR