S
S
SM_ST2021-07-15 15:49:16
PHP
SM_ST, 2021-07-15 15:49:16

How to output double value correctly?

in the table the number 0.00000042

I try to display this number, it converts it to 4.2E-7

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nokimaro, 2021-07-16
@nokimaro

<?php
echo sprintf('%f', $number);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question