[#37021] [RAA] RAA/2.3 — "U.Nakamura" <usa@...>

みなさんこんにちは。

20 messages 2003/01/30

[ruby-list:36918] Re: Numeric#bankers_round

From: matz@... (Yukihiro Matsumoto)
Date: 2003-01-08 08:37:29 UTC
List: ruby-list #36918
まつもと ゆきひろです

In message "[ruby-list:36917] Re: Numeric#bankers_round"
    on 03/01/08, Take_tk <ggb03124@nifty.ne.jp> writes:

| ↓はPython
|http://fixedpoint.sourceforge.net/html/lib/fixedpoint-rounding.html
|By default, FixedPoint objects use a type of rounding typically referred
|to as "Banker's Rounding" which is useful in financial applications. 

PythonのroundはRubyと同じです。上記の説明はPythonの固定小数
点拡張(fixedpoint number)についてのものです。Rubyだと
BigDecimalのようなものですね。

PHPについては調べてみよう。

In This Thread