per page, with , order by , clip by
Results of 1 - 10 of about 20 for floor (0.008 sec.)
fractions --- 有理数 14325
fractions --- 有理数 ソースコード: Lib/fractions.py fractions モジュールは有理数の演算をサポートします。 Fraction インスタンスは、2 つの有理数、1 つの数値、または文字列から作成できます。 class fractions. Fraction ( numerator = 0 , denominat ... ion ( cos ( pi / 3 )) . limit_denominator () Fraction(1, 2) >>> Fraction ( 1.1 ) . limit_denominator () Fraction(11, 10) __floor__ ( ) 最大の int <= self を返します。このメソッドは math.floor() 関数からでもアクセスできます: >>> from math import floor ... >>> floor ( Fraction ( 355 , 113 )) 3 __ceil__ ( ) 最小の int >= self を返します。このメソッドは math.ceil() 関数からでもアクセスでき ... - 1 ) '34.67% price increase' 参考 numbers モジュール 数値の塔を作り上げる抽象基底クラス。 他のマニュアルの関連ページ PHP floor() Linux JM floor(3) PHP stats_rand_gen_f() Linux JM random(6) PHP mongodb-bson-decimal128.construct PHP gearmanjob.sendsta ...
https://man.mtool.work/python/3.14/library/fractions.html
math --- 数学関数 12048
math --- 数学関数 このモジュールは、C 標準で定義されたものを含む、一般的な数学関数と定数を提供します。 これらの関数で複素数を使うことはできません。複素数に対応する必要があるならば、 cmath モジュールにある同じ名前の関数を使ってください。ほと ... から k 個を、重複なく順序を付けて選ぶ方法の数 浮動小数点演算 ceil(x) x の天井、つまり x 以上の最小の整数 fabs(x) x の絶対値 floor(x) x の床、つまり x 以下の最大の整数 fma(x, y, z) 融合積和演算: (x * y) + z fmod(x, y) x / y の剰余 modf(x) x の小数部と整 ... two arguments were supported. math. isqrt ( n ) Return the integer square root of the nonnegative integer n . This is the floor of the exact square root of n , or equivalently the greatest integer a such that a ² ≤ n . For some applications, it may b ... 小数点数でなければ、内部的に x.__ceil__ が実行され、 Integral 値が返されます。 math. fabs ( x ) x の絶対値を返します。 math. floor ( x ) x の「床」 ( x 以下の最大の整数) を返します。 x が浮動小数点数でなければ、内部的に x.__floor__ が実行され、 Integral ...
https://man.mtool.work/python/3.14/library/math.html
型オブジェクトの構造体 9771
型オブジェクトの構造体 新しい型を定義する PyTypeObject 構造体は、Python のオブジェクトシステムで特に重要な構造体の 1 つです。 型オブジェクトは PyObject_* 関数や PyType_* 関数で扱えますが、ほとんどの Python アプリケーションにとって関心のある ... _or__ __ror__ nb_inplace_or binaryfunc __ior__ nb_int unaryfunc __int__ nb_reserved void * nb_float unaryfunc __float__ nb_floor_divide binaryfunc __floordiv__ nb_inplace_floor_divide binaryfunc __ifloordiv__ nb_true_divide binaryfunc __truediv__ nb_i ... yfunc nb_inplace_rshift ; binaryfunc nb_inplace_and ; binaryfunc nb_inplace_xor ; binaryfunc nb_inplace_or ; binaryfunc nb_floor_divide ; binaryfunc nb_true_divide ; binaryfunc nb_inplace_floor_divide ; binaryfunc nb_inplace_true_divide ; unaryfunc nb ... ods . nb_inplace_or The corresponding slot ID Py_nb_inplace_or is part of the Stable ABI . binaryfunc PyNumberMethods . nb_floor_divide The corresponding slot ID Py_nb_floor_divide is part of the Stable ABI . binaryfunc PyNumberMethods . nb_true_divid ...
https://man.mtool.work/python/3.14/c-api/typeobj.html
C API Stability 8768
C API Stability 特記のない限り、Python の C API には後方互換性ポリシー PEP 387 が適用されます。 変更の大半はソース互換性を保ちます (通常は新しい API の追加だけを行います)。 既存 API の変更や削除は、非推奨の期間を経た後、または重大な問題を修 ... Absolute() PyNumber_Add() PyNumber_And() PyNumber_AsSsize_t() PyNumber_Check() PyNumber_Divmod() PyNumber_Float() PyNumber_FloorDivide() PyNumber_InPlaceAdd() PyNumber_InPlaceAnd() PyNumber_InPlaceFloorDivide() PyNumber_InPlaceLshift() PyNumber_InPlac ... mp_ass_subscript Py_mp_length Py_mp_subscript Py_nb_absolute Py_nb_add Py_nb_and Py_nb_bool Py_nb_divmod Py_nb_float Py_nb_floor_divide Py_nb_index Py_nb_inplace_add Py_nb_inplace_and Py_nb_inplace_floor_divide Py_nb_inplace_lshift Py_nb_inplace_matri ...
https://man.mtool.work/python/3.14/c-api/stable.html
numbers --- 数の抽象基底クラス 8513
numbers --- 数の抽象基底クラス ソースコード: Lib/numbers.py numbers モジュール ( PEP 3141 ) は、下位になるほど多くの演算を定義する、数値の 抽象基底クラス の階層を定義しています。 このモジュールで定義する型は、どれもインスタンス化を目的とした ... mbers. Real Real は Complex に実数の演算を追加します。 簡潔に言うとそれらは: float への変換, math.trunc() , round() , math.floor() , math.ceil() , divmod() , // , % , < , <= , > および >= です。 Real はまた complex() , real , imag および conjugate() の ...
https://man.mtool.work/python/3.14/library/numbers.html
What's New in Python 2.2 8513
What's New in Python 2.2 著者 : A.M. Kuchling はじめに この文書は 2002 年 10 月 14 日にリリースされた Python 2.2.2 の新機能について解説します。Python 2.2.2 は 2001 年 12 月 21 日にリリースされた Python 2.2 のバグフィックスリリースです。 Pyt ... (True division)" とは、プログラマでない人々が一番馴染みのある除算です。 3/2 は 1.5、1/4 は 0.25、などなど。 "切り捨て除算 (Floor division)" は、整数の被演算子が与えられたときの Python の / 演算子が現在やっていることで、結果は真の除算の結果の値の小数点 ... 結果となり、一方が浮動小数点数であれば真の除算の結果となる振る舞いです。 以下が 2.2 で導入される変更です: 新しい演算子 // が floor division の演算子です。(いえーい、これって C++ コメントのシンボルに似てるね、なんてことは私たちは知っています。) // は演算 ... 対象の型がなんであれ いつでも floor division を実行しますので、 1 // 2 は 0、 1.0 // 2.0 も 0.0 です。 // は Python 2.2 でいつでも使えます; __future__ を使って ...
https://man.mtool.work/python/3.14/whatsnew/2.2.html
数値型プロトコル (number protocol) 8004
数値型プロトコル (number protocol) int PyNumber_Check ( PyObject * o ) 次に属します: Stable ABI . オブジェクト o が数値型プロトコルを提供している場合に 1 を返し、そうでないときには偽を返します。この関数呼び出しは常に成功します。 バージョン ... 乗算した結果を返し、失敗すると NULL を返します。 Python の式 o1 @ o2 と同じです。 Added in version 3.5. PyObject * PyNumber_FloorDivide ( PyObject * o1 , PyObject * o2 ) 戻り値: 新しい参照。 次に属します: Stable ABI . o1 を o2 で割った結果に床関数 (flo ... ートする場合、 in-place 演算を行います。 Python の文 o1 @= o2 と同じです。 Added in version 3.5. PyObject * PyNumber_InPlaceFloorDivide ( PyObject * o1 , PyObject * o2 ) 戻り値: 新しい参照。 次に属します: Stable ABI . 成功すると o1 を o2 で除算した切捨 ...
https://man.mtool.work/python/3.14/c-api/number.html
decimal --- 10進固定小数点と浮動小数点の演算 8004
decimal --- 10進固定小数点と浮動小数点の演算 ソースコード: Lib/decimal.py decimal モジュールは、高速で正しく丸められる 10 進浮動小数点演算をサポートします。 float データ型に比べて次のような利点があります: Decimal は「人間を念頭に設計された ... シグナルを例外として扱うかどうかを決めるトラップイネーブラも定義しています。丸め規則には ROUND_CEILING , ROUND_DOWN , ROUND_FLOOR , ROUND_HALF_DOWN , ROUND_HALF_EVEN , ROUND_HALF_UP , ROUND_UP , および ROUND_05UP があります。 シグナルとは、演算の過程で ... 3.8.3. 丸めモード decimal. ROUND_CEILING Infinity 方向に丸めます。 decimal. ROUND_DOWN ゼロ方向に丸めます。 decimal. ROUND_FLOOR -Infinity 方向に丸めます。 decimal. ROUND_HALF_DOWN 近い方に、引き分けはゼロ方向に向けて丸めます。 decimal. ROUND_HALF_EVE ...
https://man.mtool.work/python/3.14/library/decimal.html
doctest --- 対話型の Python の例をテストする 8004
doctest --- 対話型の Python の例をテストする ソースコード: Lib/doctest.py doctest モジュールは Python の対話セッションに見えるテキストを探し、そのセッションを実行して記載どおりに動作するか検証します。 主な使い方は次のとおりです。 モジュール ... call last): ... OverflowError: n too large """ import math if not n >= 0 : raise ValueError ( "n must be >= 0" ) if math . floor ( n ) != n : raise ValueError ( "n must be exact integer" ) if n + 1 == n : # 1e300 のような値を検出 raise OverflowError ( ... _doc__ ) Backslashes in a raw docstring: m\n 開始カラムはどこでもかまいません: >>> assert "Easy!" >>> import math >>> math.floor(1.9) 1 期待する出力結果の先頭部にある空白文字列は、実行例の開始部分にあたる '>>> ' 行の先頭にある空白文字列と同じだけ取り除 ...
https://man.mtool.work/python/3.14/library/doctest.html
What's New In Python 3.8 8004
What's New In Python 3.8 編集者 : Raymond Hettinger この記事では Python 3.7 と比較した Python 3.8 の新機能を解説します。 Python 3.8 は 2019 年 10 月 14 日にリリースされました。 詳しくは 変更履歴 を参照してください。 概要 -- リリースハイライ ... 数を介することなく、正確な整数の二乗根を計算する関数 math.isqrt() が追加されました。この関数は、巨大な整数にも使用できます。 floor(sqrt(n)) より高速ですが、 math.sqrt() より少し遅いです: >>> r = 650320427 >>> s = r ** 2 >>> isqrt ( s - 1 ) # 正しい 6503 ... 20426 >>> floor ( sqrt ( s - 1 )) # 誤り 650320427 (Mark Dickinson の貢献による bpo-36887 ) math.factorial() 関数は、引数に int、またはそれ ...
https://man.mtool.work/python/3.14/whatsnew/3.8.html
PREV 1 2 NEXT