Discussion Board
Go to the previous messageGo to the following message
Current Forum: Homework 1 Forum
Date: Sat Sep 8 2001 2:02 pm
Author: Kwok, Jonathan Chong-Xue <jkwok@andrew.cmu.edu>
Subject: Re: confused: float or Float?

which is the recommended way of conversion from float to String:

Ashish's method:
String.valueOf(float f);

or

Sebastian's method: (1 of 2)
float t=12;
String x = new String(Float.toString(t);
Post response

Go to the previous messageGo to the following message
Current Thread Detail:
confused: float or Float?      Kwok, Jonathan Chong-Xue      Sat Sep 8 2001 12:41 pm       
Re: confused: float or Float?      Venugopal, Ashish R.      Sat Sep 8 2001 1:44 pm       
Re: confused: float or Float?      Kwok, Jonathan Chong-Xue      Sat Sep 8 2001 2:02 pm       
Re: confused: float or Float?      Venugopal, Ashish R.      Sat Sep 8 2001 4:28 pm       
Re: confused: float or Float?      Chen, Richard      Sat Sep 8 2001 8:59 pm       

Back to previous screen