Results of 1 - 10 of about 18 for getcontext (0.009 sec.)
- decimal --- 10進固定小数点と浮動小数点の演算 — Python 3.14.8 ドキュメント 13400
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » decimal --- 10進固定小数点と浮動小数点の演算 テーマ 自動 ライト ダーク | decimal --- 10進固定小数点と浮動小数
...ーザが変更できます(デフォルトでは 28 桁です)。この桁数はほとんどの問題解決に十分な大きさです: >>> from decimal import * >>> getcontext () . prec = 6 >>> Decimal ( 1 ) / Decimal ( 7 ) Decimal('0.142857') >>> getcontext () . prec = 28 >>> Decimal ( 1 ) / Deci...Specification 。 Quick-start tutorial ¶ 普通、 decimal を使うときには、モジュールをインポートし、現在の演算コンテキストを getcontext() で調べ、必要なら、精度、丸め、有効なトラップを設定します: >>> from decimal import * >>> getcontext () Context(prec=28, r...LF_EVEN, Emin=-999999, Emax=999999, capitals=1, clamp=0, flags=[], traps=[Overflow, DivisionByZero, InvalidOperation]) >>> getcontext () . prec = 7 # Set a new precision Decimal インスタンスは、整数、文字列、浮動小数点数、またはタプルから構成できます。整数... - https://man.mtool.work/python/3.14/library/decimal.html
- decimal --- 10進固定小数点と浮動小数点の演算 — Python 3.14.8 ドキュメント 13400
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » decimal --- 10進固定小数点と浮動小数点の演算 テーマ 自動 ライト ダーク | decimal --- 10進固定小数点と浮動小数
...ーザが変更できます(デフォルトでは 28 桁です)。この桁数はほとんどの問題解決に十分な大きさです: >>> from decimal import * >>> getcontext () . prec = 6 >>> Decimal ( 1 ) / Decimal ( 7 ) Decimal('0.142857') >>> getcontext () . prec = 28 >>> Decimal ( 1 ) / Deci...Specification 。 Quick-start tutorial ¶ 普通、 decimal を使うときには、モジュールをインポートし、現在の演算コンテキストを getcontext() で調べ、必要なら、精度、丸め、有効なトラップを設定します: >>> from decimal import * >>> getcontext () Context(prec=28, r...LF_EVEN, Emin=-999999, Emax=999999, capitals=1, clamp=0, flags=[], traps=[Overflow, DivisionByZero, InvalidOperation]) >>> getcontext () . prec = 7 # Set a new precision Decimal インスタンスは、整数、文字列、浮動小数点数、またはタプルから構成できます。整数... - https://man.mtool.work/python/3.14/library/decimal.html
- What's New in Python 2.4 — Python 3.14.8 ドキュメント 8287
- ナビゲーション 索引 モジュール | 次へ | 前へ | 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 日にリリー
...ditions are division by zero, loss of precision, and overflow. There's a thread-local default context available by calling getcontext() ; you can change the properties of this context to alter the default precision, rounding, or trap handling. The followin...g example shows the effect of changing the precision of the default context: >>> decimal . getcontext () . prec 28 >>> decimal . Decimal ( 1 ) / decimal . Decimal ( 7 ) Decimal("0.1428571428571428571428571429") >>> decimal ....getcontext () . prec = 9 >>> decimal . Decimal ( 1 ) / decimal . Decimal ( 7 ) Decimal("0.142857143") エラー状態の場合のデフォルトアク... - https://man.mtool.work/python/3.14/whatsnew/2.4.html
- What's New in Python 2.4 — Python 3.14.8 ドキュメント 8287
- ナビゲーション 索引 モジュール | 次へ | 前へ | 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 日にリリー
...ditions are division by zero, loss of precision, and overflow. There's a thread-local default context available by calling getcontext() ; you can change the properties of this context to alter the default precision, rounding, or trap handling. The followin...g example shows the effect of changing the precision of the default context: >>> decimal . getcontext () . prec 28 >>> decimal . Decimal ( 1 ) / decimal . Decimal ( 7 ) Decimal("0.1428571428571428571428571429") >>> decimal ....getcontext () . prec = 9 >>> decimal . Decimal ( 1 ) / decimal . Decimal ( 7 ) Decimal("0.142857143") エラー状態の場合のデフォルトアク... - https://man.mtool.work/python/3.14/whatsnew/2.4.html
- C API Stability — Python 3.14.8 ドキュメント 8201
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » C API Stability テーマ 自動 ライト ダーク | C API Stability ¶ Unless documented otherwise, Python's C API is covered by the Backw
...ewEx() PyCFunction_Type PyCMethod_New() PyCallIter_New() PyCallIter_Type PyCallable_Check() PyCapsule_Destructor PyCapsule_GetContext() PyCapsule_GetDestructor() PyCapsule_GetName() PyCapsule_GetPointer() PyCapsule_Import() PyCapsule_IsValid() PyCapsule_Ne...yExc_WindowsError PyExc_ZeroDivisionError PyExceptionClass_Name() PyException_GetArgs() PyException_GetCause() PyException_GetContext() PyException_GetTraceback() PyException_SetArgs() PyException_SetCause() PyException_SetContext() PyException_SetTracebac... - https://man.mtool.work/python/3.14/c-api/stable.html
- C API Stability — Python 3.14.8 ドキュメント 8201
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » C API Stability テーマ 自動 ライト ダーク | C API Stability ¶ Unless documented otherwise, Python's C API is covered by the Backw
...ewEx() PyCFunction_Type PyCMethod_New() PyCallIter_New() PyCallIter_Type PyCallable_Check() PyCapsule_Destructor PyCapsule_GetContext() PyCapsule_GetDestructor() PyCapsule_GetName() PyCapsule_GetPointer() PyCapsule_Import() PyCapsule_IsValid() PyCapsule_Ne...yExc_WindowsError PyExc_ZeroDivisionError PyExceptionClass_Name() PyException_GetArgs() PyException_GetCause() PyException_GetContext() PyException_GetTraceback() PyException_SetArgs() PyException_SetCause() PyException_SetContext() PyException_SetTracebac... - https://man.mtool.work/python/3.14/c-api/stable.html
- カプセル — Python 3.14.8 ドキュメント 8098
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » カプセル テーマ 自動 ライト ダーク | カプセル ¶ using-capsules 以下のオブジェクトを使
...がエラーを指してない可能性があります。 PyCapsule_IsValid() か PyErr_Occurred() を利用して確認してください。 void * PyCapsule_GetContext ( PyObject * capsule ) ¶ 次に属します: Stable ABI . Thread safety: Safe to call without external synchronization on distin... - https://man.mtool.work/python/3.14/c-api/capsule.html
- カプセル — Python 3.14.8 ドキュメント 8098
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » カプセル テーマ 自動 ライト ダーク | カプセル ¶ using-capsules 以下のオブジェクトを使
...がエラーを指してない可能性があります。 PyCapsule_IsValid() か PyErr_Occurred() を利用して確認してください。 void * PyCapsule_GetContext ( PyObject * capsule ) ¶ 次に属します: Stable ABI . Thread safety: Safe to call without external synchronization on distin... - https://man.mtool.work/python/3.14/c-api/capsule.html
- 11. Brief tour of the standard library --- part II — Python 3.14.8 ドキュメント 7927
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 11. Brief tour of the standard library --- part II テーマ 自動 ライト ダーク | 11. Brief tour of the standard library --- part II ¶ ツアー
...0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 == 1.0 False decimal モジュールを使うと、必要なだけの精度で算術演算を行えます: >>> getcontext () . prec = 36 >>> Decimal ( 1 ) / Decimal ( 7 ) Decimal('0.142857142857142857142857142857142857') 関連キーワード モジュー... - https://man.mtool.work/python/3.14/tutorial/stdlib2.html
- 11. Brief tour of the standard library --- part II — Python 3.14.8 ドキュメント 7927
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 11. Brief tour of the standard library --- part II テーマ 自動 ライト ダーク | 11. Brief tour of the standard library --- part II ¶ ツアー
...0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 == 1.0 False decimal モジュールを使うと、必要なだけの精度で算術演算を行えます: >>> getcontext () . prec = 36 >>> Decimal ( 1 ) / Decimal ( 7 ) Decimal('0.142857142857142857142857142857142857') 関連キーワード start se... - https://man.mtool.work/python/3.14/tutorial/stdlib2.html