ПродолжаемАвтор: rameel
Дата: 03.11.16
продолжатьАвтор: Sinix
Дата: 16.09.16
.
Снова отборный
товар от stackoverflow:
I was testing what was returned from division including zeroes i.e. 0/1, 1/0 and 0/0. For this I used something similar to the following:
Console.WriteLine(1d / 0d);
However this code prints 8 not Infinity or some other string constant like PositiveInfinity.
...
For those of you who seem to think this is an infinity symbol not an eight the following program:
Console.WriteLine(1d / 0d);
double value = 1d / 0d;
Console.WriteLine(value);
Console.WriteLine(Double.PositiveInfinity);
Console.WriteLine(8);
Outputs:
Желающим ответить "у меня точно такая же нога и она не болит" или просто за животрепещущими подробностями — тынц по ссылке выше
Что-то не получаются восьмёрки:
| Картинка |
| |
| |
Кодовая страница, наверное, не та (866). Или надо шрифт подбирать.