Find a number out of a given Integer array. It can return the closest, smaller and larger number to the integer requested.

History

Changed array cell designator. default tip

2017-12-21, by O_Shovah [Thu, 21 Dec 2017 13:01:31 +0000] rev 8

Changed array cell designator.


Added default constructor.

2017-12-20, by O_Shovah [Wed, 20 Dec 2017 09:52:02 +0000] rev 7

Added default constructor.


Fixed " find_larger" not finding the next larger number when given a target value smaller than the smallest number in the array.

2017-12-16, by O_Shovah [Sat, 16 Dec 2017 12:44:46 +0000] rev 6

Fixed " find_larger" not finding the next larger number when given a target value smaller than the smallest number in the array.


Smaller than and larger than give number functions working.; Return the array value if asked for the identical number.

2017-12-16, by O_Shovah [Sat, 16 Dec 2017 12:39:00 +0000] rev 5

Smaller than and larger than give number functions working.; Return the array value if asked for the identical number.


Added basic variants for the 'smaller integer' and 'larger integer' functions.

2017-12-16, by O_Shovah [Sat, 16 Dec 2017 00:46:22 +0000] rev 4

Added basic variants for the 'smaller integer' and 'larger integer' functions.


Corrected Typos in Variable Names.

2017-12-15, by O_Shovah [Fri, 15 Dec 2017 23:15:51 +0000] rev 3

Corrected Typos in Variable Names.


Simplified function naming. Unified variables.

2017-12-15, by O_Shovah [Fri, 15 Dec 2017 23:11:02 +0000] rev 2

Simplified function naming. Unified variables.


Working selection tool for closest integer value to a given one.; Needs to be given the integer Array and the number of integers in this array.

2017-12-15, by O_Shovah [Fri, 15 Dec 2017 20:04:28 +0000] rev 1

Working selection tool for closest integer value to a given one.; Needs to be given the integer Array and the number of integers in this array.


function complies but returns wrong size byte size of the array when the array is passed to the function. both sizeof return the 4 byte size of the pointer.

2017-12-15, by O_Shovah [Fri, 15 Dec 2017 18:51:45 +0000] rev 0

function complies but returns wrong size byte size of the array when the array is passed to the function. both sizeof return the 4 byte size of the pointer.