Path: csiph.com!aioe.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.java.programmer Subject: Re: [OT] Re: missing import java.lang.Comparable Date: Fri, 22 Jul 2016 23:40:10 -0400 Organization: Aioe.org NNTP Server Lines: 30 Message-ID: References: <6cbiob184r55h86pg11p45gkkmg4c877tu@4ax.com> NNTP-Posting-Host: 7SK6yTFfqwlIPNBLl3l7Qg.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:35103 On 7/20/2016 4:04 PM, Jerry Stuckle wrote: > On 7/19/2016 9:56 PM, Arne Vajhøj wrote: >> On 7/19/2016 9:33 PM, Jerry Stuckle wrote: >>> On 7/19/2016 8:18 PM, Arne Vajhøj wrote: >>>> On 7/19/2016 4:37 PM, Jerry Stuckle wrote: >>>>> And you still haven't described how Java (not javascript) handles >>>>> decimal numbers with at least 18 digits of accuracy. >>>> >>>> It has been mentioned a couple of times in this thread. >>>> >>>> BigDecimal. >>> >>> Except there are two problems with it. It is very slow, compared to a >>> native BCD implementation. >> >> Calendar says 2016 not 1986. Not really a problem. >> >>> And it doesn't support the DECIMAL type in >>> databases. >> >> Not correct. It does. > > I'm still waiting for you to identify which databases DECIMAL type > Java's BigDecimal type supports. Just posted info for Oracle, DB2, SQLServer and MySQL. Arne