Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] sort replace question


  • From: list at tridemail.de (Michael Borchers)
  • Subject: [Javascript] sort replace question
  • Date: Tue Feb 28 10:37:29 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@xxxxxxxxxxxxxx> 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('.', '_');

-------------- n?chster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: http://lists.LaTech.edu/pipermail/javascript/attachments/20060228/14a9fae4/attachment.html