double
Number
This function retrieves the value of a Number value. It will fail with InvalidArgument if the type of the value is not Number.
InvalidArgument
Requires an active script context.
public double ToDouble() { double value; Native.ThrowIfError(Native.JsNumberToDouble(this, out value)); return value; }