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.
バイトを切り上げた最も近い MB に変換しようとしています。
そう..
605768 would become 1 not 0.577705 1704342 would become 2 not 1.625387192
等
これを行うにはどうすればよいですか? 値を返したいだけです。
ありがとう
round関数を使用すると、期待どおりの結果を得ることができます。例えば
round
echo round((605768/(1024 * 1024)));1 を生成します。
echo round((605768/(1024 * 1024)));