Thursday, May 31, 2007

Formatting Strings

Standard Numeric Format Strings

Custom Numeric Formats

Example : Convert a double into a string with 2 decimal places
Dim PercentStat As Double = 3.1423489955
Dim PercentStr As String = PercentStat.ToString("#0.00")

No comments: