[Javascript] sort replace question

Shawn Milo Shawn at Milochik.com
Tue Feb 28 07:37:55 CST 2006


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>


More information about the Javascript mailing list