This method is obsolete (but functional) and it is better to use Pm.ToNumber.
n = Pm.CDbl(value)
|value||(Double) Any valid numeric expression.|
The conversion functions can be used e.g. if you want some operation result to be expressed as a particular data type (rather than the default data type). For example, use CDbl or CSng method to force the Double or Single data type in cases where integer arithmetic normally would occur.
Use this method to provide conversion independent on local system settings from any other data type to the Double type. Conversion of string value, where the decimal separator is "period" or "comma", will be completed correctly in both cases. depending on the locale setting of your system. Compare with VBScript.CDbl.
var n1 = Pm.CDbl("3.14");
var n2 = Pm.CDbl("3,14"); //In n1 is stored the same value as in n2