[]
Returns the value of the named parameter as a float. If the parameter has a non-numeric value a NumberFormatException is thrown. If the parameter has a multiple word value than the first word is returned as an int, others are ignored. If the parameter 'pname' is not in the parameter list, an IllegalArgumentException is thrown.
public virtual float getFloatParameter(string pname)
Type | Name | Description |
---|---|---|
string | pname | The parameter name. |
Type | Description |
---|---|
float | the value of the parameter as a float. |