Re: Tipo de dato para no tener problemas con el redondeo

From: Hellmuth Vargas <hivs77(at)gmail(dot)com>
To: Jaime Casanova <jaime(dot)casanova(at)2ndquadrant(dot)com>
Cc: "jvenegasperu (dot)" <jvenegasperu(at)gmail(dot)com>, Ayuda <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: Tipo de dato para no tener problemas con el redondeo
Date: 2016-08-10 23:43:59
Message-ID: CAN3Qy4rwnt8Wm6M=TQKr3ByfxRKQFGkeWgSrjHc1ZCrs1gz5vQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

como lo expuso Jaime ;-)

https://www.postgresql.org/docs/9.5/static/datatype-numeric.html

NameStorage SizeDescriptionRange
smallint 2 bytes small-range integer -32768 to +32767
integer 4 bytes typical choice for integer -2147483648 to +2147483647
bigint 8 bytes large-range integer -9223372036854775808 to
+9223372036854775807
decimal variable user-specified precision, exact up to 131072 digits before
the decimal point; up to 16383 digits after the decimal point
numeric variable user-specified precision, exact up to 131072 digits before
the decimal point; up to 16383 digits after the decimal point
real 4 bytes variable-precision, inexact 6 decimal digits precision
double precision 8 bytes variable-precision, inexact 15 decimal digits
precision
smallserial 2 bytes small autoincrementing integer 1 to 32767
serial 4 bytes autoincrementing integer 1 to 2147483647
bigserial 8 bytes large autoincrementing integer 1 to 9223372036854775807

El 10 de agosto de 2016, 16:21, Jaime Casanova<
jaime(dot)casanova(at)2ndquadrant(dot)com> escribió:

> 2016-08-10 16:17 GMT-05:00 jvenegasperu . <jvenegasperu(at)gmail(dot)com>:
> >
> > Que tipo de dato seria el mas adecuado para no tener problemas de
> redondeo.
> >
> > Estoy viendo si usar el tipo de dato real Real o Numeric que me muestra
>
> numeric
>
> --
> Jaime Casanova www.2ndQuadrant.com
> PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
>
> -
> Enviado a la lista de correo pgsql-es-ayuda (pgsql-es-ayuda(at)postgresql(dot)org
> )
> Para cambiar tu suscripción:
> http://www.postgresql.org/mailpref/pgsql-es-ayuda
>

--
Cordialmente,

Ing. Hellmuth I. Vargas S.
Esp. Telemática y Negocios por Internet
Oracle Database 10g Administrator Certified Associate
EnterpriseDB Certified PostgreSQL 9.3 Associate

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Javier Lugo Porras 2016-08-11 00:53:11 Instalacion y uso de Python en Postgresql9.5
Previous Message Jaime Casanova 2016-08-10 21:21:31 Re: Tipo de dato para no tener problemas con el redondeo