I
I
Ivan Ivanov2021-10-22 11:30:33
PHP
Ivan Ivanov, 2021-10-22 11:30:33

When dividing two fractional numbers, how to get a fractional number, and not an exponent (2.1E-6)?

I divide one number by another, as a result I get 2.1E-6, I can’t work with this further. I need to round this number, but when rounding I get zero)

I just divide the number a by the number b, as a result I get the exponent. Further, during operation, this exponent is displayed as zero. Suppose I then add to the resulting private unit, in the end it will all be equal to one, because this exponent (FLOAT (2.1E-6) - this is my output, and if it turns out to be an integer, then it turns out normally int (1 )) equals zero

Help please

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2021-10-22
@maksim_fix

2.1E-6 == 2.1×10 -6 == 0.000021
What do you think should be the result when rounded to an integer?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question