Connect HomeMarketplaceComponentsNovigo Solutions - Find Closest Value to a Number

Novigo Solutions - Find Closest Value to a Number

Snippet

Snippet

Updated: August 28th, 2020

Published: March 16th, 2020

Downloads: 10

Industry: Utilities

Language compatibility: Visual Basic

Community Support

Novigo Solutions - Find Closest Value to a Number

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

Details

Benefits

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

Compatibility

Compatible with all versions of Studio starting with 2018.4.1

Dependencies

UiPath.System.Activities >= 18.4.1

Resources

- User_Guide.pdf

Licensing

By clicking download you agree to the following license.