Thursday, June 10, 2010

parameters directly in the function

Hello!!!

I'm Waléria....i have a question about a functions....i have a
function bellow:

y.append(pow(form.cleaned_data['Pinc'],2)/(2*(pow(2*pi*v,
2)))*((pow(2,2)*pow(form.cleaned_data['Qe'],2)))/
(pow(form.cleaned_data['fp'],2))*(pow(form.cleaned_data['df'],2)))

I need to pass this parameter (2 * pi * x) directly on the function
but displays an error: unsupported operand type(s) for /: 'Decimal'
and 'float'

As i do?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate