From: Bertram Scharpf Date: 2007-07-17T15:51:39+09:00 Subject: Re: Force calculation result to BigDecimal Hi, Am Dienstag, 17. Jul 2007, 14:50:18 +0900 schrieb Robert Brown: > Appreciate your tip, but I was thinking the other way round: have > BigDecimal take Float as an initializer, not have Float output > BigDecimal. -From time to time I wonder why there is no BigDecimal initializer taking a Float argument. There seems to be a point as Float values aren't unambiguous and you have to explicitly mention which one you mean of "%f" % 1.8 # => "1.800000" "%32.24f" % 1.8 # => " 1.800000000000000044408921" So I'd rather say it's disencouraged to convert Float to BigDecimal. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de