P
P
Persotr272019-04-06 14:14:14
.NET
Persotr27, 2019-04-06 14:14:14

How to round double numbers with E c#?

Hello. The command as a result of the work gives a value for example 2.210000000000002E-6 . What can be used to round up, so that it would be 2.21E-6 simply? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
professor08, 2019-04-06
professor08 @

When converting to a string, zeros are discarded.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question