Hi,<BR>I&#039;m inputting a number (i.e. 4) into a function and want to find the closest number to it that&#039;s in some XML (see below). Does anyone know of a simple function in VB.Net that can accomplish something similar to this? It seems like a pretty basic routine... Thanks!<BR><BR>&#060;z:row Percent=&#039;2&#039; Pension=&#039;6&#039;/&#062;<BR>&#060;z:row Percent=&#039;3&#039; Pension=&#039;3&#039;/&#062;<BR>&#060;z:row Percent=&#039;4&#039; Pension=&#039;11&#039;/&#062;<BR>&#060;z:row Percent=&#039;5&#039; Pension=&#039;2&#039;/&#062;<BR><BR><BR>Regards,<BR>Peter