| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

「Python 数値の桁数を得る」の版間の差分

提供: MyMemoWiki
ナビゲーションに移動 検索に移動
(ページの作成:「==Python 数値の桁数を得る== [Python]{{category ロジック}} import math >>> n = 12345 >>> int(math.log10(n) + 1) 5」)
(相違点なし)

2020年2月15日 (土) 07:35時点における版

Python 数値の桁数を得る

[Python]テンプレート:Category ロジック

import math
>>> n = 12345
>>> int(math.log10(n) + 1)
5