Console.WriteLine Method (Double)
Writes the text representation of the specified double-precision floating-point value, followed by the current line terminator, to the standard output stream.
Assembly: mscorlib (in mscorlib.dll)
The text representation of value is produced by calling the Double.ToString method.
For more information about the line terminator, see the Remarks section of the WriteLine method that takes no parameters.
The HostProtectionAttribute attribute applied to this type or member has the following Resources property value: UI. The HostProtectionAttribute does not affect desktop applications (which are typically started by double-clicking an icon, typing a command, or entering a URL in a browser). For more information, see the HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes.
The following example is a tip calculator that calculates an 18% tip and uses the WriteLine method to display the amount of the original charge, the amount of the tip, and the total amount. The example is a console application that requires the user to supply the amount of the original charge as a command-line parameter.