hnlScaleCapacitance
hnlScaleCapacitance(g_propVal t_propName) =>value
Description
Accepts the given value as an argument, divides it by the value of the simCapUnit variable, and then returns the result rounded to the nearest integer. If simCapUnit isset to nil, then the value of the property is returned, again rounded to the nearest integer. The property name given as the second argument is used for error messages if the value does not evaluate to a number.
If the property is of the string type, the property value is evaluated before it is scaled.
Arguments
Value Returned
Examples
hnlScaleCapacitance( 5 "l" )
hnlScaleCapacitance( "5" "l" )
Related Topics
Return to top