Results of 1 - 10 of about 13 for precision (0.009 sec.)
- 浮動小数点オブジェクト 12510
- 浮動小数点オブジェクト type PyFloatObject この PyObject のサブタイプは Python の浮動小数点オブジェクトを表します。 PyTypeObject PyFloat_Type 次に属します: Stable ABI . この PyTypeObject のインスタンスは Python の浮動小数点型を表します。 Pyt
...ats these functions work by copying bits. On other platforms, the 2-byte format is identical to the IEEE 754 binary16 half-precision format, the 4-byte format (32-bit) is identical to the IEEE 754 binary32 single precision format, and the 8-byte format to...the IEEE 754 binary64 double precision format, although the packing of INFs and NaNs (if such things exist on the platform) isn't handled correctly, and attempti...E platforms (signaling NaNs become quiet NaNs), for example on x86 systems in 32-bit mode. On non-IEEE platforms with more precision, or larger dynamic range, than IEEE 754 supports, not all values can be packed; on non-IEEE platforms with less precision,... - https://man.mtool.work/python/3.14/c-api/float.html
- string --- 一般的な文字列操作 11859
- string --- 一般的な文字列操作 ソースコード: Lib/string/__init__.py 参考 テキストシーケンス型 --- str 文字列メソッド 文字列定数 このモジュールで定義されている定数は以下の通りです: string. ascii_letters 後述の ascii_lowercase と ascii_upperca
...の結果を変更します。 一般的な書式指定子 ( standard format specifier ) の書式は以下です: format_spec : [ options ][ width_and_precision ][ type ] options : [[ fill ] align ][ sign ][ "z" ][ "#" ][ "0" ] fill : <any character> align : "<" | ">" | "=" | "^" si...gn : "+" | "-" | " " width_and_precision : [ width_with_grouping ][ precision_with_grouping ] width_with_grouping : [ width ][ grouping ] precision_with_grouping :..."." [ precision ][ grouping ] | "." grouping width : digit + precision : digit + grouping : "," | "_" type : "b" | "c" | "d" | "e" | "E" |... - https://man.mtool.work/python/3.14/library/string.html
- decimal --- 10進固定小数点と浮動小数点の演算 10803
- decimal --- 10進固定小数点と浮動小数点の演算 ソースコード: Lib/decimal.py decimal モジュールは、高速で正しく丸められる 10 進浮動小数点演算をサポートします。 float データ型に比べて次のような利点があります: Decimal は「人間を念頭に設計された
...Decimal(float('1.1')) は Decimal('1.100000000000000088817841970012523233890533447265625') に変換されます。 context の精度 (precision) は、記憶される桁数には影響しません。桁数は value に指定した桁数だけから決定されます。例えば、演算コンテキストに指定された...ontext = None ) 1 つ目の演算対象の数字を、2 つ目の演算対象で指定した桁数だけ巡回させた結果を返します。 2 つ目の演算対象は -precision から precision までの整数でなければなりません。 その絶対値が巡回させる桁数を表し、正なら左へ、それ以外なら右へ巡回させます...。 必要に応じて 1 つ目の演算対象の係数の左側をゼロで埋め、長さを precision に揃えます。 1 つ目の演算対象の符号と指数は変わりません。 same_quantum ( other , context = None ) self と other が同じ指数... - https://man.mtool.work/python/3.14/library/decimal.html
- 文字列の変換と書式化 9959
- 文字列の変換と書式化 数値変換と、書式化文字列出力のための関数群。 int PyOS_snprintf ( char * str , size_t size , const char * format , ... ) 次に属します: Stable ABI . 書式文字列 format と追加の引数から、 size バイトを超えない文字列を str に
...の例外を設定して -1.0 を返します。 Added in version 3.1. char * PyOS_double_to_string ( double val , char format_code , int precision , int flags , int * ptype ) 次に属します: Stable ABI . double val を指定された format_code , precision , flags に基づいて文...字列に変換します。 format_code は 'e' , 'E' , 'f' , 'F' , 'g' , 'G' , 'r' のどれかでなければなりません。 'r' の場合、 precision は 0 でなければならず、無視されます。 'r' フォーマットコードは標準の repr() フォーマットを指定しています。 flags には、以下... - https://man.mtool.work/python/3.14/c-api/conversion.html
- 組み込み型 8041
- 組み込み型 以下のセクションでは、インタプリタに組み込まれている標準型について記述します。 主要な組み込み型は、数値、シーケンス、マッピング、クラス、インスタンス、および例外です。 コレクションクラスには、ミュータブルなものがあります。コレクシ
...子になった置換フィールドを含む書式指定子は、 Interpolation オブジェクトに渡される前に即座に評価されます。 例えば、 {amount:.{precision}f} 形式の補間では、内部の式 {precision} を評価して format_spec 属性の値を決めます。 precision が 2 なら、結果の書式指定子は...ず、返される文字列中では文字 '%' になります。 For floating-point formats, the result should be correctly rounded to a given precision p of digits after the decimal point. The rounding mode matches that of the round() builtin. 注釈: 別の形式を指定(訳注: 変... - https://man.mtool.work/python/3.14/builtins/stdtypes.html
- 2. 字句解析 8041
- 2. 字句解析 Python プログラムは パーザ によって読み取られます。 パーザへの入力は、 字句解析器 (または トークナイザ ) が生成した トークン の列です。 この章では、字句解析器がこれらのトークンを生成する方法を説明します。 字句解析器はプログラムの
...{ number : 20.7f } ' ' 14.3000000' 最上位の書式指定子には、入れ子の置換フィールドを含められます。 >>> field_size = 20 >>> precision = 7 >>> f ' { number :{ field_size } . { precision } f } ' ' 14.3000000' これらの入れ子のフィールドには、それぞれ変換フィー... - https://man.mtool.work/python/3.14/reference/lexical_analysis.html
- What's New in Python 2.4 7830
- What's New in Python 2.4 著者 : A.M. Kuchling この文書は 2005 年 3 月 30 日にリリースされた Python 2.4.1 の新機能について解説します。 Python 2.4 は、真ん中サイズ、のリリースです。急進的だった Python 2.2 ほどには多くの変更をしていませんが、保
...IEEE 754 number, which uses 52 bits of space for the mantissa. This means that numbers can only be specified to 52 bits of precision. If you're trying to represent numbers whose expansion repeats endlessly, the expansion is cut off after 52 bits. Unfortun...77245001") Context 型 Context クラスのインスタンスは、十進数の演算に関するいくつかの設定をまとめて保持します。 prec is the precision, the number of decimal places. rounding は丸めモードを指定します。 decimal モジュールには、 ROUND_DOWN 、 ROUND_CEILING 、... - https://man.mtool.work/python/3.14/whatsnew/2.4.html
- What's New In Python 3.6 7830
- What's New In Python 3.6 エディタ : Elvis Pranskevichus < elvis @ magic . io >, Yury Selivanov < yury @ magic . io > この記事では 3.5 と比較した Python 3.6 の新機能を解説します。 Python 3.6 は2016年12月23日にリリースされました。 全詳細につい
...ォーマットされます: >>> name = "Fred" >>> f "He said his name is { name } ." 'He said his name is Fred.' >>> width = 10 >>> precision = 4 >>> value = decimal . Decimal ( "12.34567" ) >>> f "result: { value :{ width } . { precision }} " # 入れ子のフィールド... - https://man.mtool.work/python/3.14/whatsnew/3.6.html
- math --- 数学関数 7618
- math --- 数学関数 このモジュールは、C 標準で定義されたものを含む、一般的な数学関数と定数を提供します。 これらの関数で複素数を使うことはできません。複素数に対応する必要があるならば、 cmath モジュールにある同じ名前の関数を使ってください。ほと
...exp ( 1e-5 ) - 1 # gives result accurate to 11 places 1.0000050000069649e-05 >>> expm1 ( 1e-5 ) # result accurate to full precision 1.0000050000166668e-05 Added in version 3.2. math. log ( x [ , base ] ) 引数が1つの場合、 x の ( e を底とする)自然対数を返... - https://man.mtool.work/python/3.14/library/math.html
- 変更履歴 7618
- 変更履歴 次の Python バージョン リリース日: XXXX-XX-XX セキュリティ gh-160499 : Fix unbounded memory growth in asyncio TLS connections when a peer stops reading but keeps sending records that make OpenSSL generate its own replies (such as T
...01 when proxy authentication fails. gh-160806 : Fix the pure-Python implementation of datetime.timedelta losing sub-second precision with large float arguments. It now gives the same results as the C implementation. gh-160781 : Fix io.BytesIO implementati...ch by Bénédikt Tran. gh-140036 : Avoid hanging in floor division of pure Python decimal.Decimal instances when the context precision is very large. Patch by Bénédikt Tran. ビルド gh-128883 : Fix crashes with -X perf and -X perf_jit in BOLT builds. The ELF... - https://man.mtool.work/python/3.14/whatsnew/changelog.html