[Javascript] sort replace question

Michael Borchers list at tridemail.de
Tue Feb 28 10:37:51 CST 2006


what's wrong then?! :(

 var y = 3.5;
 var x = parseFloat(y);
 
 var z = toString(y);
 alert(z);

gives out: [object Window]


  On 2/28/06, Hassan Schroeder <hassan at webtuitive.com> wrote: 
    Michael Borchers wrote:
    > i have a flot f.e. 2.5
    > and would like to replace the . with a _ 
    >
    > myFloat.replace('.', '_');

      myFloat.toString().replace('.', '_');

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20060228/14a9fae4/attachment.htm>


More information about the Javascript mailing list