Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] sort replace question
- From: Shawn at Milochik.com (Shawn Milo)
- Subject: [Javascript] sort replace question
- Date: Tue Feb 28 07:38:02 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@xxxxxxxxxxxx> wrote:
>
> i have a flot f.e. 2.5
> and would like to replace the . with a _
>
> myFloat.replace('.', '_');
>
> ?!
>
> _______________________________________________
> Javascript mailing list
> Javascript@xxxxxxxxxx
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.LaTech.edu/pipermail/javascript/attachments/20060228/7f3b75c9/attachment.html
- References:
- [Javascript] sort replace question
- From: Michael Borchers
- [Javascript] sort replace question
- Prev by Date: [Javascript] sort replace question
- Next by Date: [Javascript] sort replace question
- Previous by thread: [Javascript] sort replace question
- Next by thread: [Javascript] sort replace question
- Index(es):