Sorry for the rookie question but, I'm using
$n -= ($n * $u) * $u;
printf "%d\n", abs($n);
iterating through to get a result I want, but I want to save this result in an index of an array, but the above function just prints it to the screen I can't do anything with it?! to save the result and process it further is there anyway I can format it and save it as a string, in a for loop? e.g.
array [$i] = (printf "%d\n", abs($n));
many thanks and apologies if this question seems or sounds stupid to you?