Cheers for your thoughts, I got it sorted..... int $i; float $x = 0.005; for($i = 0; $i < $numberOfCVs; $i++) { $x *= 2; // Do whatever needs to be done } Thanks to kbrown for that Doubtless I'll be back again soon when I next get stuck!! Cheers, Mat