per page, with , order by , clip by
Results of 1 - 10 of about 28 for rounding (0.038 sec.)
decimal --- 10進固定小数点と浮動小数点の演算 — Python 3.14.8 ドキュメント 13994
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » decimal --- 10進固定小数点と浮動小数点の演算 テーマ 自動 ライト ダーク | decimal --- 10進固定小数点と浮動小数 ... t() で調べ、必要なら、精度、丸め、有効なトラップを設定します: >>> from decimal import * >>> getcontext () Context(prec=28, rounding=ROUND_HALF_EVEN, Emin=-999999, Emax=999999, capitals=1, clamp=0, flags=[], traps=[Overflow, DivisionByZero, InvalidOperati ... Decimal('3.1415926535') >>> Decimal ( '3.1415926535' ) + Decimal ( '2.7182818285' ) Decimal('5.85987') >>> getcontext () . rounding = ROUND_UP >>> Decimal ( '3.1415926535' ) + Decimal ( '2.7182818285' ) Decimal('5.85988') C バージョンの内部制限を超えた場 ... '2.675' ) : .2f } " '2.68' >>> format ( Decimal ( '2.675' ), ".2e" ) '2.68e+0' >>> with localcontext () as ctx : ... ctx . rounding = ROUND_DOWN ... print ( format ( Decimal ( '2.675' ), ".2f" )) ... 2.67 いくつかの数学的関数も Decimal には用意されていま ...
https://man.mtool.work/python/3.14/library/decimal.html
decimal --- 10進固定小数点と浮動小数点の演算 — Python 3.14.8 ドキュメント 13994
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » decimal --- 10進固定小数点と浮動小数点の演算 テーマ 自動 ライト ダーク | decimal --- 10進固定小数点と浮動小数 ... t() で調べ、必要なら、精度、丸め、有効なトラップを設定します: >>> from decimal import * >>> getcontext () Context(prec=28, rounding=ROUND_HALF_EVEN, Emin=-999999, Emax=999999, capitals=1, clamp=0, flags=[], traps=[Overflow, DivisionByZero, InvalidOperati ... Decimal('3.1415926535') >>> Decimal ( '3.1415926535' ) + Decimal ( '2.7182818285' ) Decimal('5.85987') >>> getcontext () . rounding = ROUND_UP >>> Decimal ( '3.1415926535' ) + Decimal ( '2.7182818285' ) Decimal('5.85988') C バージョンの内部制限を超えた場 ... '2.675' ) : .2f } " '2.68' >>> format ( Decimal ( '2.675' ), ".2e" ) '2.68e+0' >>> with localcontext () as ctx : ... ctx . rounding = ROUND_DOWN ... print ( format ( Decimal ( '2.675' ), ".2f" )) ... 2.67 いくつかの数学的関数も Decimal には用意されていま ...
https://man.mtool.work/python/3.14/library/decimal.html
15. 浮動小数点演算、その問題と制限 — Python 3.14.8 ドキュメント 8537
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 15. 浮動小数点演算、その問題と制限 テーマ 自動 ライト ダーク | 15. 浮動小数点演算、その問題と制限 ¶ 浮動小数点数はコンピューターのハードウ ... further and tracks all of the "lost digits" as values are added onto a running total so that the result has only a single rounding. This is slower than sum() but will be more accurate in uncommon cases where large magnitude inputs mostly cancel each oth ... 7 , 266262841.31058735 , - 0.003244936839808227 ] >>> float ( sum ( map ( Fraction , arr ))) # Exact summation with single rounding 8.042173697819788e-13 >>> math . fsum ( arr ) # Single rounding 8.042173697819788e-13 >>> sum ( arr ) # Multiple roundings ... in extended precision 8.042178034628478e-13 >>> total = 0.0 >>> for x in arr : ... total += x # Multiple roundings in standard precision ... >>> total # Straight addition has no correct digits! -0.0051575902860057365 15.1. 表現エラー ¶ ...
https://man.mtool.work/python/3.14/tutorial/floatingpoint.html
15. 浮動小数点演算、その問題と制限 — Python 3.14.8 ドキュメント 8537
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 15. 浮動小数点演算、その問題と制限 テーマ 自動 ライト ダーク | 15. 浮動小数点演算、その問題と制限 ¶ 浮動小数点数はコンピューターのハードウ ... further and tracks all of the "lost digits" as values are added onto a running total so that the result has only a single rounding. This is slower than sum() but will be more accurate in uncommon cases where large magnitude inputs mostly cancel each oth ... 7 , 266262841.31058735 , - 0.003244936839808227 ] >>> float ( sum ( map ( Fraction , arr ))) # Exact summation with single rounding 8.042173697819788e-13 >>> math . fsum ( arr ) # Single rounding 8.042173697819788e-13 >>> sum ( arr ) # Multiple roundings ... in extended precision 8.042178034628478e-13 >>> total = 0.0 >>> for x in arr : ... total += x # Multiple roundings in standard precision ... >>> total # Straight addition has no correct digits! -0.0051575902860057365 15.1. 表現エラー ¶ ...
https://man.mtool.work/python/3.14/tutorial/floatingpoint.html
What's New in Python 2.4 — Python 3.14.8 ドキュメント 8193
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New in Python 2.4 テーマ 自動 ライト ダーク | What's New in Python 2.4 ¶ 著者 : A.M. Kuchling この文書は 2005 年 3 月 30 日にリリー ... instances represent numbers, and Context instances are used to wrap up various settings such as the precision and default rounding mode. Decimal instances are immutable, like regular Python integers and FP numbers; once it's been created, you can't chan ... he Context class encapsulate several settings for decimal operations: prec is the precision, the number of decimal places. rounding specifies the rounding mode. The decimal module has constants for the various possibilities: ROUND_DOWN , ROUND_CEILING , ... context available by calling getcontext() ; you can change the properties of this context to alter the default precision, rounding, or trap handling. The following example shows the effect of changing the precision of the default context: >>> decimal . ...
https://man.mtool.work/python/3.14/whatsnew/2.4.html
What's New in Python 2.4 — Python 3.14.8 ドキュメント 8193
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New in Python 2.4 テーマ 自動 ライト ダーク | What's New in Python 2.4 ¶ 著者 : A.M. Kuchling この文書は 2005 年 3 月 30 日にリリー ... instances represent numbers, and Context instances are used to wrap up various settings such as the precision and default rounding mode. Decimal instances are immutable, like regular Python integers and FP numbers; once it's been created, you can't chan ... he Context class encapsulate several settings for decimal operations: prec is the precision, the number of decimal places. rounding specifies the rounding mode. The decimal module has constants for the various possibilities: ROUND_DOWN , ROUND_CEILING , ... context available by calling getcontext() ; you can change the properties of this context to alter the default precision, rounding, or trap handling. The following example shows the effect of changing the precision of the default context: >>> decimal . ...
https://man.mtool.work/python/3.14/whatsnew/2.4.html
string --- 一般的な文字列操作 — Python 3.14.8 ドキュメント 7849
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » テキスト処理サービス » string --- 一般的な文字列操作 テーマ 自動 ライト ダーク | string --- 一般的な文字列操作 ¶ Source code: Lib/s ... ような結果になります。 The result should be correctly rounded to a given precision p of digits after the decimal point. The rounding mode for float matches that of the round() builtin. For Decimal , the rounding mode of the current context will be used. T ...
https://man.mtool.work/python/3.14/library/string.html
変更履歴 — Python 3.14.8 ドキュメント 7849
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac ... sage using a modern email policy. Previously when a quoted string was folded so that it spanned more than one line, the surrounding quotes and internal escapes would be omitted. This could theoretically be used to spoof header lines using a carefully con ... "z" option to the string formatting specification that coerces negative zero floating-point values to positive zero after rounding to the format precision. Contributed by John Belmonte. bpo-26175 : Fully implement the io.BufferedIOBase or io.TextIOBase ... if an exception in the chain is unhashable or compares equal to later ones. Patch by Zane Bitter. bpo-31786 : Fix timeout rounding in the select module to round correctly negative timeouts between -1.0 and 0.0. The functions now block waiting for events ...
https://man.mtool.work/python/3.14/whatsnew/changelog.html
string --- 一般的な文字列操作 — Python 3.14.8 ドキュメント 7849
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » テキスト処理サービス » string --- 一般的な文字列操作 テーマ 自動 ライト ダーク | string --- 一般的な文字列操作 ¶ Source code: Lib/s ... ような結果になります。 The result should be correctly rounded to a given precision p of digits after the decimal point. The rounding mode for float matches that of the round() builtin. For Decimal , the rounding mode of the current context will be used. T ...
https://man.mtool.work/python/3.14/library/string.html
sys --- システム固有のパラメーターと関数 — Python 3.14.8 ドキュメント 7734
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » sys --- システム固有のパラメーターと関数 テーマ 自動 ライト ダーク | sys --- システム固有のパラメーター ... _info. radix ¶ FLT_RADIX The radix of exponent representation. float_info. rounds ¶ FLT_ROUNDS An integer representing the rounding mode for floating-point arithmetic. This reflects the value of the system FLT_ROUNDS macro at interpreter startup time: -1 ... toward positive infinity 3 : toward negative infinity All other values for FLT_ROUNDS characterize implementation-defined rounding behavior. The attribute sys.float_info.dig needs further explanation. If s is any string representing a decimal number wit ...
https://man.mtool.work/python/3.14/library/sys.html
PREV 1 2 3 NEXT