[SciPy-User] Error

Waléria Antunes David waleriantunes@gmail....
Fri Oct 22 08:13:04 CDT 2010


Thank you very much!!!

On Fri, Oct 22, 2010 at 11:11 AM, Robert Kern <robert.kern@gmail.com> wrote:

> On Fri, Oct 22, 2010 at 06:54, Waléria Antunes David
> <waleriantunes@gmail.com> wrote:
> >
> > The problem was solved.
> > Now occurs this error:
> >
> > TypeError at /index/
> >
> > unsupported operand type(s) for ** or pow(): 'Decimal' and 'float'
>
> When you use DecimalFields, the value you get will be a Decimal
> object, not a float. You will need to use other Decimal values (e.g.
> Decimal('-0.5')) in expressions with them.
>
>  http://docs.python.org/library/decimal
>
> In any case, this has nothing to do with numpy or scipy.
>
> --
> Robert Kern
>
> "I have come to believe that the whole world is an enigma, a harmless
> enigma that is made terrible by our own mad attempt to interpret it as
> though it had an underlying truth."
>   -- Umberto Eco
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20101022/3c44db01/attachment.html 


More information about the SciPy-User mailing list