Programming environment for editing various of my live apps without restarting them.
approximate_up = function(n, zeros)
	-- turn n into a number with n zeros
	-- step 1: scale down
	for i=1,zeros do
		n = n/10
	end
	n = math.ceil(n)
	if n == 0 then n = 1 end
	-- step 2: scale back up
	local magnitude = 1
	for i=1,zeros do
		n = n*10
		magnitude = magnitude*10
	end
	return n, magnitude
end