K
K
kaktak2552021-06-06 10:26:31
C++ / C#
kaktak255, 2021-06-06 10:26:31

How to find the number of digits after the dot?

The number 0.343 how to find the number of digits after the dot?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alice, 2021-06-06
@kaktak255

Hold

A
Andy_U, 2021-06-06
@Andy_U

In the binary system, this decimal number cannot be represented as a finite fraction. Those. the answer depends on the bitness of the computer, etc. etc. and it will not be 3 at all. Unless, of course, we are talking about a number and not a string.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question