Sybren Stuvel wrote:
> Tgone enlightened us with:
> > Sorry, when I print out the variable it displays as '15.0'. The
> > price is '15.00' in the database though.
>
> That's the same thing, isn't it? 15.0 == 15.0
Yes, they're
Laszlo Nagy wrote:
> Tgone írta:
> > Hello,
> >
> > I have a price column in a MySQL table: price decimal(5,2)
> >
> > When I access them in Python with SQLObject, prices display as 15.0
> > instead of 15.00. Why is this happening? I can't figure out
Hello,
I have a price column in a MySQL table: price decimal(5,2)
When I access them in Python with SQLObject, prices display as 15.0
instead of 15.00. Why is this happening? I can't figure out why Python
is trimming off the hundredth place. I'm not doing any formatting...
Thanks,
Tony
--
http
Diez B. Roggisch wrote:
> Tgone wrote:
>
> > Hello,
> >
> > I've come across sites that discuss embedding Python in PHP, but is it
> > possible to access PHP functions in Python?
>
> I'm not aware of a generic wrapper thingy. Which doesn'
Hello,
I've come across sites that discuss embedding Python in PHP, but is it
possible to access PHP functions in Python?
--
http://mail.python.org/mailman/listinfo/python-list
your suggestions worked. thanks.
--
http://mail.python.org/mailman/listinfo/python-list