Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
なぜこれが起こっているのかわかりませんが、私のローカルホストでは、それが PHP なのか Apache なのかわかり123.45ませfloatval("123.45")ん。ただし、最終結果はまたは、基本的には数値である必要があります。123.4500000000234813423...sprintffloatint
123.45
floatval("123.45")
123.4500000000234813423...
sprintf
float
int
浮動小数点問題です。
number_formatまたはを使用して適切な値sprintfを表示します。
number_format
PHP ドキュメント: