Re: How to sum monetary variables

From: Date: Mon, 18 Jul 2011 23:52:32 +0000
Subject: Re: How to sum monetary variables
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-314108@lists.php.net to get a copy of this message
2011/7/18 Richard Quadling <rquadling@gmail.com> > 2011/7/18 Martín Marqués <martin.marques@gmail.com>: > > > > Any ideas? > > For financial values, I use the money type. > > I use MS SQL, but PostgreSQL has > > http://www.postgresql.org/docs/9.0/interactive/datatype-money.html > The version of PostgreSQL plays a role, too, as at one point the money type was deprecated (and I still tend to use numeric, even though work has been done to improve the money type): http://archives.postgresql.org/pgsql-general/2008-05/msg00979.php http://www.postgresql.org/docs/8.2/static/datatype-money.html <http://archives.postgresql.org/pgsql-general/2008-05/msg00979.php>Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

« previous php.general (#314108) next »