*** This version of Confluence is for testing only and contains a copy of content from June 29th 2026. No changes will be preserved. ***
Math Functions Design Program
Math Functions is composed of two functions which are used in other programs to facilitate the design process by simplifying the algorithm where possible.
RoundNearest
This function takes both a number and an array as its inputs and returns the number in the array that is closest to the inputted number. This function assumes that the array is ordered with the smallest number in the first cell.