Dear Steve,

use TRUNCATE or ROUND. Manual:
http://www.mysql.com/doc/M/a/Mathematical_functions.html

Like: SELECT TRUNCATE(my_col, 2) FROM my_tbl

Regards,

--
  Stefan Hinz
  Geschäftsführer / CEO iConnect e-commerce solutions GmbH
  #  www.js-webShop.com www.iConnect.de
  #  Gustav-Meyer-Allee 25, 13355 Berlin
  #  Tel: +49-30-46307-382  Fax: +49-30-46307-388

----- Original Message -----
From: "pc" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 17, 2001 6:15 PM
Subject: Formatting Price Field in my Table so 0.20 does not become
0.2....


> Hi people,
>
> Anyone know how to get a field in one of my table in a form that any
number
> that I want to be displayed as 0.20 doesn't round off as 0.2? So 0.20
for
> the cost instead of 0.2?
>
> Or do I have to do this with the Server Side Language I'm using to
format
> the value? Or some extra SQL command?
>
> Thanxs
>
> Steve Griff
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
>


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to