約9,350件1ページ目

条件を指定して検索しています。すべての条件を解除する

  • 対象とする言語:日本語
  • The simplest way is round(number, 2). Just pass your number and 2 as the digits parameter. For example round(3.14159, 2) gives 3.14, and round(20/3, 2) gives 6 ...

    2026/6/2 -Pythonで round() を使って丸める round() は、指定した小数桁まで浮動小数点数を丸めるためのPythonの組み込み関数です。第2引数に桁数を指定します。次 ...

    2025/2/3 -結論. Pythonで四捨五入する際にはround関数ではなく Decimal.quantize() を利用する round関数は四捨五入するのではなく偶数 ...

    2025/10/30 -Pythonのround関数は、数値を指定した桁数で四捨五入するための組み込み関数です。 日常生活で、アンケート結果の「35.8%」を「36%」と表示したり、割り算 ...

    2023/11/28 -組み込み関数round() · 小数を任意の桁数に丸める · 整数を任意の桁数に丸める · round()は一般的な四捨五入ではなく、偶数への丸め.

    2024/3/1 -Pythonに組み込みのround関数による数値の丸め方とその注意点、Decimalクラス(10進実数)を使った数値の四捨五入のやり方を紹介する。

    2026/9/11 -In HALF_EVEN rounding, also known as Gaussian or banker's rounding, the digit 5 is rounded towards an even digit. For HALF_UP rounding use the ...

    2010/7/4 -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 ...

    2022/12/25 -Pythonでデータを扱う場合、整数や小数に対して小学校でならうようないわゆる四捨五入をいい感じでしてくれる関数がなかったので自作してみました。

    2025/10/4 -round(x, n) で数値を 小数点以下 n 桁 に丸めることができます。 · 関数に digits=3 というデフォルト引数を追加して、指定がなければ3桁で表示するように ...