Re: Is there a reader setting support BigDecimal by default?

2011-10-20 Thread Joel Gluth
On Tue, Oct 18, 2011 at 3:47 PM, Tassilo Horn tass...@member.fsf.org wrote: Scott Hickey jscotthic...@gmail.com writes: And usually, you should refrain from using floating points at all, no matter if BigDecimal or Double. I thought BigDecimal with was not a floating point in the traditional

Re: Is there a reader setting support BigDecimal by default?

2011-10-20 Thread Ben Smith-Mannschott
On Thu, Oct 20, 2011 at 11:17, Joel Gluth joel.gl...@gmail.com wrote: On Tue, Oct 18, 2011 at 3:47 PM, Tassilo Horn tass...@member.fsf.org wrote: Scott Hickey jscotthic...@gmail.com writes: And usually, you should refrain from using floating points at all, no matter if BigDecimal or Double.

Re: Is there a reader setting support BigDecimal by default?

2011-10-20 Thread Tassilo Horn
Joel Gluth joel.gl...@gmail.com writes: And usually, you should refrain from using floating points at all, no matter if BigDecimal or Double. I thought BigDecimal with was not a floating point in the traditional sense (ie., subject to all of the usual rounding horror, unless you ask it to

Re: Is there a reader setting support BigDecimal by default?

2011-10-20 Thread Scott Hickey
Thank for the replies and I appreciate the suggestions, however they some of the rationale behind them doesn't match well my experience. First, BigDecimal is plenty fast the large business systems I've worked on. Actually, it has been plenty fast for every large business system I've worked on.

Re: Is there a reader setting support BigDecimal by default?

2011-10-20 Thread Stuart Sierra
Scott: no, there is no way to configure the reader to default numbers with a decimal point to be BigDecimal instead of Double Correct. But you can modify the Reader: it's just Java code. -S -- You received this message because you are subscribed to the Google Groups Clojure group. To post to

Re: Is there a reader setting support BigDecimal by default?

2011-10-20 Thread Stuart Halloway
It appears that the answer to the original question is no, there is no way to configure the reader to default numbers with a decimal point to be BigDecimal instead of Double. Scott Hickey Reading a double implies that somebody upstream of you was using doubles, which violates the

Re: Is there a reader setting support BigDecimal by default?

2011-10-20 Thread Ben Smith-Mannschott
On Thu, Oct 20, 2011 at 22:50, Stuart Halloway stuart.hallo...@gmail.com wrote: It appears that the answer to the original question is no, there is no way to configure the reader to default numbers with a decimal point to be BigDecimal instead of Double. Scott Hickey Reading a double

Re: Is there a reader setting support BigDecimal by default?

2011-10-20 Thread Stuart Halloway
It appears that the answer to the original question is no, there is no way to configure the reader to default numbers with a decimal point to be BigDecimal instead of Double. Scott Hickey Reading a double implies that somebody upstream of you was using doubles, which violates the

Re: Is there a reader setting support BigDecimal by default?

2011-10-20 Thread Ben Smith-Mannschott
On Thu, Oct 20, 2011 at 23:16, Stuart Halloway stuart.hallo...@gmail.com wrote: It appears that the answer to the original question is no, there is no way to configure the reader to default numbers with a decimal point to be BigDecimal instead of Double. Scott Hickey Reading a double

Re: Is there a reader setting support BigDecimal by default?

2011-10-18 Thread Scott Hickey
I'm looking to avoid qualifying every number that has a decimal point with an M. For the business applications I've built over the last 25 years (credit card processing, healthcare claims, loans,etc.), there's never been a situation where inexact numbers were appropriate. That's why I was

Re: Is there a reader setting support BigDecimal by default?

2011-10-18 Thread Tassilo Horn
Scott Hickey jscotthic...@gmail.com writes: Hi Scott, I'm looking to avoid qualifying every number that has a decimal point with an M. For the business applications I've built over the last 25 years (credit card processing, healthcare claims, loans,etc.), there's never been a situation where

Is there a reader setting support BigDecimal by default?

2011-10-17 Thread Scott Hickey
In some versions of Scheme or Lisp, there is a flag that you can set so that the reader will create exact numbers by default (BigDecimal) instead of inexact doubles. Is there a way to do this in Clojure? Scott Hickey -- You received this message because you are subscribed to the Google

Re: Is there a reader setting support BigDecimal by default?

2011-10-17 Thread Meikel Brandmeyer
Hi, you are looking for 1.3M? Sincerely Meikel -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To

Re: Is there a reader setting support BigDecimal by default?

2011-10-17 Thread Scott Hickey
I've been using 1.2 but I would be OK with a solution in any version. Scott Hickey -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be

Re: Is there a reader setting support BigDecimal by default?

2011-10-17 Thread Meikel Brandmeyer
Hi, I meant this: Clojure 1.2.0 user= (type 1.0M) java.math.BigDecimal Sincerely Meikel -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated -