say i have a given set of numbers ( any numbers positive or negative). i now specify a number X. what i want is a solution to find the sum of numbers in the given series which is closest to the number i have specified. the solution should give me two numbers. one on the lower side which is closest to the specified number and one on the higher side. say i specify 500 then the solution should give a number say 480 which is on the lower side and 550 which may be on the higher side.
2007-01-22
20:49:23
·
3 answers
·
asked by
JIMMY
1
in
Science & Mathematics
➔ Mathematics
i am actually trying to build a code for this in VB. but this problem somehow eludes me.
2007-01-23
19:40:34 ·
update #1