Formating the decimal point

Formating the decimal point

Anonymous
Not applicable
230 Views
1 Reply
Message 1 of 2

Formating the decimal point

Anonymous
Not applicable
Can anybody tell me if they know of any way of formating a series of numbers so that the decimal place always stays in the same place?

I have, for example, a series of numbers thus...

12.456
1.33
175.45
8.6
0.124

I need to use the Format$ function in visual basic to output the numbers so that the decimal point lines up.

Can anybody help?

Many thanks in advance!!!

Isocam group.
0 Likes
231 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Format(0.456, "000.000") returns 000.456 Format(12.56, "000.000") returns 012.560 All the decimals would line up. "isotech" wrote in message news:23447936.1103209621075.JavaMail.jive@jiveforum2.autodesk.com... > Can anybody tell me if they know of any way of formating a series of numbers so that the decimal place always stays in the same place? > > I have, for example, a series of numbers thus... > > 12.456 > 1.33 > 175.45 > 8.6 > 0.124 > > I need to use the Format$ function in visual basic to output the numbers so that the decimal point lines up. > > Can anybody help? > > Many thanks in advance!!! > > Isocam group.
0 Likes