valueOf

Summary

Returns the primitive double value wrapped by the System.Double object.

Usage

public double valueOf()

Returns

The primitive double value wrapped by the System.Double object.

Description

Returns the primitive double value wrapped by the System.Double object.

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.valueOf()); // 1.1
Console.log(b.valueOf()); // 2.2

Share

HTML | BBCode | Direct Link