poIAdvancedQuery SetNumericPrecision
Sets the numeric precision for output values.
Syntax
advancedQuery_handle SetNumericPrecision precision
Application
HyperView Tcl Modify
Description
This command is used to set the numeric precision to the advanced query.
Inputs
- precision
- Accepts the precision number which is ideally an integer value from 0 to 12.
Example
To set the numeric precision to the advanced
query:
hwi OpenStack
hwi GetActiveClientHandle client
set ruleID [client AddQueryRule extreme]
client GetQueryRuleHandle rule_handle $ruleID
rule_handle SetExtreme "TopN 3"
set advQueryID [client AddAdvancedQuery]
client GetAdvancedQueryHandle advancedQuery_handle $advQueryID
advancedQuery_handle AddSimulations "current" "current"
advancedQuery_handle SetQuery "entity.id entity.value"
advancedQuery_handle SetQueryLogic "[rule_handle GetID]"
advancedQuery_handle SetNumericPrecison "5"
advancedQuery_handle GetValueList
hwi CloseStack
Errors
This command returns HW_Error
, if precision is less than 0.