I noticed that on my LAN the division occurs without "infinity", and on Windows Server 2012 R2, for some reason it turns out "infinity".

dlouble lol = 100/(2500/90)/100; 
  • one
    Well, ensure the implementation of real division, not the whole, and there will be no errors. - MBo
  • four
    What is dlouble ? - Akina
  • one
    dlouble lol = 100.0 / (2500/90) / 100; :) - demonplus
  • one
    The choice of variable names is interesting - demonplus
  • one
    The fact that this code is compiled is already an achievement - demonplus

0