Skip to main content
Added some formatting, Removed KC directory from C:\KC> in code sample
Source Link
KChaloux
  • 5.8k
  • 4
  • 37
  • 35

Surprisingly, it seems to work properly in Windows PowerShell (version 3)Windows PowerShell (version 3).

PS C:\KC>\> 1.0 / 6.0 0.166666666666667 PS C:\KC>\> 1/6 0.166666666666667 

Also seems to work in Python 3 as sepp2k mentioned. The other two languages I have readily available on REPL, Scala and Ruby, both do integer division and yield 0.

Surprisingly, it seems to work properly in Windows PowerShell (version 3).

PS C:\KC> 1.0 / 6.0 0.166666666666667 PS C:\KC> 1/6 0.166666666666667 

Also seems to work in Python 3 as sepp2k mentioned. The other two languages I have readily available on REPL, Scala and Ruby, both do integer division and yield 0.

Surprisingly, it seems to work properly in Windows PowerShell (version 3).

PS C:\> 1.0 / 6.0 0.166666666666667 PS C:\> 1/6 0.166666666666667 

Also seems to work in Python 3 as sepp2k mentioned. The other two languages I have readily available on REPL, Scala and Ruby, both do integer division and yield 0.

Source Link
KChaloux
  • 5.8k
  • 4
  • 37
  • 35

Surprisingly, it seems to work properly in Windows PowerShell (version 3).

PS C:\KC> 1.0 / 6.0 0.166666666666667 PS C:\KC> 1/6 0.166666666666667 

Also seems to work in Python 3 as sepp2k mentioned. The other two languages I have readily available on REPL, Scala and Ruby, both do integer division and yield 0.