Well.....i got this values of a form but i thank you very much...because i got resolve this problem
Thank you On 10 jun, 15:53, Daniel Roseman <[email protected]> wrote: > On Jun 10, 6:13 pm, Waleria <[email protected]> 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

