Create your first automation in just a few minutes.Try Studio Web →
by YouTube
1
Activity
<100
Summary
Summary
Two activities that support the conversion of numbers to any internationally recognized format and remove the formatting of any formatted number
Overview
Overview
Different countries use different number formatting standards. In order to convert numbers to these formats, finding the best suitable method would be time consuming. Additionally, for calculation purposes, these formatted numbers should be converted into software supported data types such as Double or Int for processing. Such conversion would usually take place by either replacing thousand separators and decimal separators or by following a different approach such as the use of CDBL function of vb.net. However, these approaches do not support all the world recognized number formats and would require some amount of error handling to convert the numbers accurately when handling multiple number formats.
This component provides two activities:
Supported Number formats:
The activity that converts the number to this format would require two inputs. The number to be converted and the format that the number should be converted to. The required format should be mentioned as listed above. For example: format should be given as en-US. By default, it converts the number to en-US format. If the user wishes to convert to a different format, the required format should be provided.
The activity that converts any formatted number to software friendly Double format accepts any format. This includes formats that are not listed above as well. The activity that converts formatted numbers to Double requires two inputs: the formatted number and the decimal separator that is used in the format. Since different countries use different decimals and thousand separators, it is important that we provide the decimal separator so that the code behind knows how to accurately convert the number. The code behind handles this conversion through a series of errors checking to make sure the final output is accurate.
Error messages to know of for removing formatting:
If either of the first two error messages pops up, make sure you have provided the correct inputs for the activity that converts the formatted number to Double.
Prerequisites
None
Features
Features
Easy conversion of numbers to any world recognized number format Easy conversion of numbers from any world recognized number format to software process friendly format such as Double or Int Efficient conversion methods Tested error handling mechanisms to make sure the output is accurate Log generation of the conversion process
Additional Information
Additional Information
Dependencies
UiPath.Excel.Activities: 2.6.0 UiPath.Mail.Activities: 1.5.0 UiPath.System.Activities: 19.5.0 UiPath.UIAutomation.Activities: 19.5.0
Code Language
Visual Basic
Runtime
Windows Legacy (.Net Framework 4.6.1)
License & Privacy
MIT
Privacy Terms
Technical
Version
1.0.5Updated
February 18, 2020Works with
Developed and tested using UiPath Studio 2019.5.0 Compatible with previous and current versions
Certification
Silver Certified
Tags
Support
UiPath Community Support