Double.ToString Method : Double « Data Types « VB.Net






Double.ToString Method

 

Imports System.Globalization
Imports System.Threading

Module Example
   Public Sub Main()
            Dim value As Double 
            value = -9999.62015
            ' Display value using the invariant culture.
            Console.WriteLine(value.ToString(CultureInfo.InvariantCulture))
            ' Display value using the en-GB culture.
            Console.WriteLine(value.ToString(CultureInfo.CreateSpecificCulture("en-GB")))
            ' Display value using the de-DE culture.
            Console.WriteLine(value.ToString(CultureInfo.CreateSpecificCulture("de-DE")))
            
            value = 99999.125E21
            ' Display value using the invariant culture.
            Console.WriteLine(value.ToString(CultureInfo.InvariantCulture))
            ' Display value using the en-GB culture.
            Console.WriteLine(value.ToString(CultureInfo.CreateSpecificCulture("en-GB")))
            ' Display value using the de-DE culture.
            Console.WriteLine(value.ToString(CultureInfo.CreateSpecificCulture("de-DE")))
            ' This example displays the following output to the console:
   End Sub
End Module

   
  








Related examples in the same category

1.Double Structure Represents a double-precision floating-point number.
2.Assign result to both an integer and a doubleAssign result to both an integer and a double
3.Double: Set number, multiply numbers, and display resultsDouble: Set number, multiply numbers, and display results
4.Double: Set number, divide numbers, and display resultsDouble: Set number, divide numbers, and display results
5.Double number format: 0:n3Double number format: 0:n3
6.Double value calculationDouble value calculation
7.Append Double data type values to a StringBuilder object.
8.Generic and nongeneric versions of the CompareTo method for Double value
9.Use the Sign(Double) method to determine the sign of a Double value and display it to the console.
10.Use Double.Parse to parse double string value
11.Convert Double.MinValue to string
12.Use CInt to convert Double to Integer
13.Double Structure Represents a double-precision floating-point number.
14.Double variable
15.Parse string to double value
16.Double ToString("#####")
17.Double Structure Represents a double-precision floating-point number.
18.Temperature class stores the value as Double and delegates most of the functionality to the Double implementation.
19.Double.Epsilon Field Represents the smallest positive Double value that is greater than zero. This field is constant.
20.Double.Equals Method
21.Compare Double values with difference
22.Double.Parse Method
23.Double.ToString Method Converts the numeric value of this instance to its equivalent string representation.
24.Parse a string read from console to Double
25.Double.TryParse Method (String, Double) Converts string to double-precision floating-point number