toString

Summary

Converts the double value to an equivalent string value.

Usage

public override string toString()

Returns

The equivalent string value for the double value.

Description

Converts the double value to an equivalent string value.

For instance, 123.456 will become "123.456".

Examples

Basic Usage
1
2
3
4
5
6
import System;
 
System.Double a = new System.Double(1.1d);
System.Double b = new System.Double(2.2d);
Console.log(a.toString()); // "1.1"
Console.log(b.toString()); // "2.2"
Concatentation on Stringified Values
1
2
3
4
5
6
import System;
 
System.Double a = new System.Double(1.1d);
System.Double b = new System.Double(2.2d);
Console.log(a.toString() + b.toString());       // "1.12.2"
Console.log(a.toString() + "," + b.toString()); // "1.1,2.2"

Share

HTML | BBCode | Direct Link