You are here: Re: Cost Calculation Function With Parsed Numbers to Currency: Need Help Combining Functions « HTML « IT news, forums, messages
Re: Cost Calculation Function With Parsed Numbers to Currency: Need Help Combining Functions

Posted by Neredbojias on 11/11/21 11:28

With neither quill nor qualm, Fred quothed:

>
> >
> >It should be easy to strip the $ before processing, no??
>
>
> I was thinking after processig.
>
> How would you do it? Can you post an example?

Well, in javascript it'd be simply:

var a;
....
....
a=a.slice(1);

(You could also use regexp replace.)

If you have to verify whether or not the "$" is there:

if (a.slice(0,1)=="$") {
a=a.slice(1);
}

There's similar functions in php, etc.

--
Neredbojias
Contrary to popular belief, it is believable.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация