Concatenating A Double

  • Thread starter Thread starter Ron
  • Start date Start date
R

Ron

Can anyone tell me how I can remove a few zero's from the end of a double?

For example, the number I have is 55.0000, the number I need is 55.00.

How can I go about trimming the zeros?

Thanks,

Ron
 
Dim dblValue As Double = 55.0000

Convert.ToDecimal(dblValue)

or

FormatNumber(dblValue, 2)

The second parameter specifies the number of digits to the right of the
decimal place that should be displayed.
 
Back
Top