On Tue, 06 Apr 2010 23:16:18 -0400, monkeys paw <mon...@joemoney.net> wrote:
> I have the following acre meter which works for integers,
> how do i convert this to float? I tried
>
> return float ((208.0 * 208.0) * n)
>
> >>> def s(n):
> ...   return lambda x: (208 * 208) * n
> ...
> >>> f = s(1)
> >>> f(1)
> 43264
> >>> 208 * 208
> 43264
> >>> f(.25)
> 43264

The expression "lambda x: (208 * 208) * n" is independent of x.
Is that what you intended?


-- 
To email me, substitute nowhere->spamcop, invalid->net.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to