PVGadgets_FormatNumber

Top  Previous  Next

Formats a number string.

 

Use:

Result$=PVGadgets_FormatNumber(Number.s,Group.l,DecDig.l,DecSep.s,GrpSep.s,Neg.l)

 

 

Number.s - Number to format (in string format)

Group.l - group in bunches of

DecDig.l - number of decimal places

DecSep.s - Decimal seperator character

GrpSep.s - Group seperator Character

Neg.l - Format negative values

0 = (000)

1 = -000

2 = - 000

3 = 000-

4 = 000 -

 

 

 

Example:

 

Debug PVGadgets_FormatNumber("3343200",3,2,".",",",0)

 

returns:

3,343,200.00