Method EnvDouble
| Improve this Doc View SourceEnvDouble(String, Double)
Gets the value of a variable in double
format.
Declaration
public virtual double EnvDouble(string variable, double defaultValue = 0)
Parameters
Type | Name | Description |
---|---|---|
String | variable | Environment variable name. |
Double | defaultValue | A default value in case the variable is not set. |
Returns
Type | Description |
---|---|
Double | A value of the environment variable in |
Implements
Remarks
If the environment variable is not set, the method will return the default value.
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
FormatException |
|