I think you have to convert it to a string first. myFloat = myFloat + ''; Then do your replace. Milo On 2/28/06, Michael Borchers <list at tridemail.de> wrote: > > i have a flot f.e. 2.5 > and would like to replace the . with a _ > > myFloat.replace('.', '_'); > > ?! > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.evolt.org/pipermail/javascript/attachments/20060228/7f3b75c9/attachment.htm>