nnres from array to number