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.
私は現在、コンマの後に多くの数字を持つ変数を扱うコードに取り組んでいます。
現時点では、830 / 1E8 を含む変数があります。この変数の結果は、私に 8.3E-6 を与えます。PHP がこのような形式で結果を返すようにするにはどうすればよいですか? 0.00000830?
number_format メソッドを使用して、小数点以下の桁数を指定します
echo number_format(8.3E-6, 8); // => 0.00000830