1. Senior Member
Join Date
Dec 1969
Posts
322

Hi Folks<BR> Does anyone know how to remove leading zero&#039;s so that 0956 becomes 956 and 0020 becomes 20. Any help is much appreciated.<BR><BR>Cheers,<BR><BR>Neil

2. Senior Member
Join Date
Dec 1969
Posts
2,854

cFloat("0956") <BR><BR>should do it<BR><BR>Or <BR><BR>formatnumber("0956", 0)<BR><BR>both should do it.<BR><BR>HTH<BR>D.

3. Senior Member
Join Date
Dec 1969
Posts
402

## cFloat ??

jscript - parseInt()<BR><BR>vbs - cint(), cdbl(), etc

4. Senior Member
Join Date
Dec 1969
Posts
322

## RE: cFloat ??

Thanks very much

5. Senior Member
Join Date
Dec 1969
Posts
2,854

## Yes, cFloat

what if he has <BR><BR>"09876.675" <BR><BR>cInt, cDbl will drop the decimal.

6. Senior Member
Join Date
Dec 1969
Posts
7,686

## cFLOAT??

Is that new?<BR><BR>and since when will cDBL drop the decimal?<BR><BR>cLng and cInt will drop the decimal, cDbl is what you need, and I don&#039;t think cFloat exists<BR><BR>

7. Senior Member
Join Date
Dec 1969
Posts
2,854

## RE: cFLOAT??

does it not?<BR><BR>I&#039;m sure I&#039;ve used it before??? <BR><BR>maybe I am getting confused with parseFloat in JS???<BR><BR>time to experiment!<BR>

8. Senior Member
Join Date
Dec 1969
Posts
2,854

## you're right!

My appologies to all, I was getting confused, with cFloat. <BR><BR>Sorry, it doesn&#039;t exist , and cDEBL will not drop the decimal. <BR><BR>so, final analysis is:<BR><BR>cDbl() &#039;VBScript<BR>parseFloat() //JScript<BR><BR>Sorry, not sure where my mind is this morning ;-)<BR><BR><BR>

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•