Results of 1 - 7 of about 7 for ceil (0.007 sec.)
- math --- 数学関数 12868
- math --- 数学関数 このモジュールは、C 標準で定義されたものを含む、一般的な数学関数と定数を提供します。 これらの関数で複素数を使うことはできません。複素数に対応する必要があるならば、 cmath モジュールにある同じ名前の関数を使ってください。ほと
...の整数平方根 lcm(*integers) 整数引数の最小公倍数 perm(n, k) n 個から k 個を、重複なく順序を付けて選ぶ方法の数 浮動小数点演算 ceil(x) x の天井、つまり x 以上の最小の整数 fabs(x) x の絶対値 floor(x) x の床、つまり x 以下の最大の整数 fma(x, y, z) 融合積和...n . For some applications, it may be more convenient to have the least integer a such that n ≤ a ², or in other words the ceiling of the exact square root of n . For positive n , this can be computed using a = 1 + isqrt(n - 1) . Added in version 3.8...ts are not integers. Raises ValueError if either of the arguments are negative. Added in version 3.8. 浮動小数点演算 math. ceil ( x ) x の「天井」 ( x 以上の最小の整数) を返します。 x が浮動小数点数でなければ、内部的に x.__ceil__ が実行され、 Integra... - https://man.mtool.work/python/3.14/library/math.html
- fractions --- 有理数 10451
- fractions --- 有理数 ソースコード: Lib/fractions.py fractions モジュールは有理数の演算をサポートします。 Fraction インスタンスは、2 つの有理数、1 つの数値、または文字列から作成できます。 class fractions. Fraction ( numerator = 0 , denominat
...このメソッドは math.floor() 関数からでもアクセスできます: >>> from math import floor >>> floor ( Fraction ( 355 , 113 )) 3 __ceil__ ( ) 最小の int >= self を返します。このメソッドは math.ceil() 関数からでもアクセスできます。 __round__ ( ) __round__ ( n... - https://man.mtool.work/python/3.14/library/fractions.html
- numbers --- 数の抽象基底クラス 9087
- numbers --- 数の抽象基底クラス ソースコード: Lib/numbers.py numbers モジュール ( PEP 3141 ) は、下位になるほど多くの演算を定義する、数値の 抽象基底クラス の階層を定義しています。 このモジュールで定義する型は、どれもインスタンス化を目的とした
...l は 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
- 組み込み型 8051
- 組み込み型 以下のセクションでは、インタプリタに組み込まれている標準型について記述します。 主要な組み込み型は、数値、シーケンス、マッピング、クラス、インスタンス、および例外です。 コレクションクラスには、ミュータブルなものがあります。コレクシ
...点型に変換してください。 float から int への変換は小数点以下を切り捨てます。別の変換方法については関数 math.floor() や math.ceil() を参照してください。 浮動小数点数は、文字列 "nan" と "inf" を、オプションの接頭辞 "+" または "-" と共に、非数 (Not a Num...方は偶数丸めです。 n が省略されれば 0 がデフォルトとなります。 math.floor(x) x 以下の最大の Integral (整数) を返します math.ceil(x) x 以上の最小の Integral (整数) を返します その他の数値演算は、 math や cmath モジュールをご覧ください。 整数型におけるビ... - https://man.mtool.work/python/3.14/builtins/stdtypes.html
- unittest.mock --- モックオブジェクトライブラリ 7706
- unittest.mock --- モックオブジェクトライブラリ Added in version 3.3. ソースコード: Lib/unittest/mock.py unittest.mock は Python でテストを行うためのライブラリです。 テスト対象のシステムの一部をモックオブジェクトに置き換え、どのように使われた
...ト: __hash__ , __sizeof__ , __repr__ , __str__ __dir__ , __format__ , __subclasses__ __round__ , __floor__ , __trunc__ と __ceil__ 比較: __lt__ , __gt__ , __le__ , __ge__ , __eq__ , __ne__ コンテナメソッド: __getitem__ , __setitem__ , __delitem__ , __... - https://man.mtool.work/python/3.14/library/unittest.mock.html
- What's New in Python 2.6 7706
- What's New in Python 2.6 著者 : A.M. Kuchling (amk at amk.ca) この記事では、2008 年 10 月 1 日にリリースされた Python 2.6 の新機能を説明します。 リリース日程は PEP 361 に記載されています。 Python 2.6 の主要なテーマは、言語を大幅に再設計する
...、配列のインデックスやスライスの境界にも使えます。 Python 3.0 では、この PEP によって既存の round() 、 math.floor() 、 math.ceil() の定義が少し変わり、新しい math.trunc() が加わります。 この新しい関数は Python 2.6 にも移植されました。 math.trunc() はゼ... - https://man.mtool.work/python/3.14/whatsnew/2.6.html
- What's New In Python 3.8 7706
- What's New In Python 3.8 編集者 : Raymond Hettinger この記事では Python 3.7 と比較した Python 3.8 の新機能を解説します。 Python 3.8 は 2019 年 10 月 14 日にリリースされました。 詳しくは 変更履歴 を参照してください。 概要 -- リリースハイライ
...nteger' } def __init__ ( self , bit_rate , duration ): self . bit_rate = round ( bit_rate / 1000.0 , 1 ) self . duration = ceil ( duration ) (Raymond Hettinger の貢献による bpo-36326 ) io In development mode ( -X dev ) and in debug build , the io.IOB... - https://man.mtool.work/python/3.14/whatsnew/3.8.html
PREV
1
NEXT