Number 0.1 (i.e. 1/10) has no accurate representation in the real floatingpoint number format IEEE 754 and its approximate value is recorded. When printed directly the result looks correct because of the rounding. The rounding is done during the conversion of the number to string in order to be printed
The number of array follow....
|
NEREDEN GELİR
on the console. When switching from float to double the approximaterepresentation of the number in the IEEE 754 format is more noticeable.Therefore, the rounding does no longer hide the incorrect representation andwe can observe the errors in it after the eighth digit.
aşağıdakikere
The number of array follow....
|
aşağıdakilere dikkat edin
for döngüsü
|
The number of array follow....
|