I have a script which reads through a set of numbers
that can have a value up to two place beyond the decimal point ( eg. 1.99, 1.9, 1 etc. ). When I display these numbers as a list on my html page generated by my asp script, they do not line up on the decimal point. Example:-
10.9
1.7
250.89
20.71
78.1
11
Is there a clever way of forcing a number to be written to Response.Write a number with padded two decimal places ( so that 1.7 become 1.70, 11 become 11.00 etc ). the only alternative I can think of is to concatonate a string verion of the number with '0' or '.00' and reposnse.write the string instead of the number which seems a bit poor.
Many thanks
that can have a value up to two place beyond the decimal point ( eg. 1.99, 1.9, 1 etc. ). When I display these numbers as a list on my html page generated by my asp script, they do not line up on the decimal point. Example:-
10.9
1.7
250.89
20.71
78.1
11
Is there a clever way of forcing a number to be written to Response.Write a number with padded two decimal places ( so that 1.7 become 1.70, 11 become 11.00 etc ). the only alternative I can think of is to concatonate a string verion of the number with '0' or '.00' and reposnse.write the string instead of the number which seems a bit poor.
Many thanks