Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок+ 1
is it casting or what
double rst=0.0 rst = rst + (double) 1 / i;
1 ответ
+ 4
Yes, that converts the 1 into double before performing the computation.
double rst=0.0 rst = rst + (double) 1 / i;