On Jun 10, 6:13 pm, Waleria <waleriantu...@gmail.com> wrote:
> 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?

That's not a function, that's a single line of incredibly (and
unnecessarily) complex code.

Where are you passing the value to? What is x? What is pi in this
instance? How are you passing these values? Where exactly is the error
occurring (if you split this line up into multiple lines, the error
would point to the exact bit with the problem)?
--
DR.

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

Reply via email to