www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Best way to store postgresql's "numeric" type in D?

reply "denizzzka" <4denizzz gmail.com> writes:
It is up to 131072 digits before the decimal point; up to 16383 
digits after the decimal point.
Oct 10 2012
next sibling parent "H. S. Teoh" <hsteoh quickfur.ath.cx> writes:
On Wed, Oct 10, 2012 at 11:35:11AM +0200, denizzzka wrote:
 It is up to 131072 digits before the decimal point; up to 16383
 digits after the decimal point.

Sounds like a case for BigFloat (which isn't part of the standard library yet; somebody's working on it and it's about 95% complete now, from what I last heard). T -- Who told you to swim in Crocodile Lake without life insurance??
Oct 10 2012
prev sibling parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 10/10/12 5:35 AM, denizzzka wrote:
 It is up to 131072 digits before the decimal point; up to 16383 digits
 after the decimal point.

For now, I guess string would be it. Andrei
Oct 10 2012