Snippet

**Version:** 1.0.0 (View History)

**Published:** March 17th, 2020

**Downloads:** 6

**Industry:** Utilities

**Process:** Finance & Accounting

Snippet

Summary:

This Activity finds the Closest value to a given input value within the provided Array Of Numbers (Double Data type).

This Snippet requires the following five arguments:

1. ArrayOfValues (Double[]) : The Array of Values which needs to be searched. Required

2. InputValue (Double) : The Input Value that needs to be searched in the Input Array. Required

3. ValueLessThanInputValue (Boolean) : If true, the Value which is Lesser than Input Value but the Closest will be Chosen. By Default, it is False. Optional

4. FinalClosestValue (Double) : The Output Value which is the Closest Value in the Array. Required

5. IndicesOfClosestValue (Integer[]) : The indices of the Closest Value found in the Array. Optional

Finding a value which is equal to a given value or approximately equal to a given value. Approximate estimation.

Compatible with all versions of Studio starting with 2018.4.1

UiPath.System.Activities >= 18.4.1

- User_Guide.pdf

By clicking download you agree to the following license.