0

Почему (4+8)/2 не рано 6, а равно 6.0?

17th Jun 2020, 7:24 PM
Roman Radko
2 Respostas
0
Potomu chto delenie vsegda privodit k float point chislu Esli vam nujno poluvhit celochislennoe to v raznix iazikax po raznomu delaetsa. Dopustim v pitone dlia takix celei est delenie // /2 dast 6.0 , a //2 dast 6. V c++ okruglaut i t. Dalee
17th Jun 2020, 7:33 PM
george
george - avatar
0
Ок, спс
19th Jun 2020, 11:32 AM
Roman Radko