NumberFormatValuesData GetNumberFormatValues(NumberFormatValuesArg tArg)
tArg. Operation execution parameters.
The GetNumberFormatValues method formats values in accordance with the specified format.
To execute the operation, in the tArg.format field specify the required number format, and in the tArg.items field specify formatted values.
The operation results in the collection of formatted values.
Below is the example of formatted numbers. The request contains format and numbers. The response contains formatted numbers.
{
"GetNumberFormatValues" :
{
"tArg" :
{
"items" :
{
"it" :
[
"123,456",
"123456789,012345"
]
},
"format" :
{
"@F" : "#,##0.000",
"@UDS" : ".",
"@FTS" : " "
}
}
}
}
{
"GetNumberFormatValuesResult" :
{
"items" :
{
"it" :
[
"123.456",
"123 456 789.012"
]
}
}
}
public static NumberFormatValuesData GetNumberFormatValues(string[] arguments)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tFormat = new GetNumberFormatValues()
{
tArg = new NumberFormatValuesArg()
{
format = new TabNumberFormatStyle()
{
F = "#,##0.000",
UDS = ".",
FTS = " "
},
items = arguments
}
};
// Format numbers
var result = somClient.GetNumberFormatValues(tFormat);
return result;
}
See also: