The value_from_formatted_string.py
module#
Summary#
Convert a value formatted to a specific locale back into an IVariableValue. |
Description#
Provides a method for converting a formatted string to a value.
Module detail#
- value_from_formatted_string.from_formatted_string(var_type: ansys.tools.variableinterop.variable_type.VariableType, source: str, locale_name: str) ansys.tools.variableinterop.variable_value.IVariableValue #
Convert a value formatted to a specific locale back into an IVariableValue.
- Parameters:
- var_type
VariableType
The type of variable to convert to.
- source
str
The string to convert.
- locale_name
str
The locale the string was formatted in.
- var_type
- Returns:
IVariableValue
An IVariableValue of the specified type whose value matches the given string.