1 of 1
marinus
  • 31.2k
  • 7
  • 70
  • 112

APL (Dyalog)

X←1e15
X=X+2

APL does not even have infinity, it's just that the floats aren't precise enough to tell the difference between 1.000.000.000.000.000 and 1.000.000.000.000.002. This is, as far as I know, the only way to do this in APL.

marinus
  • 31.2k
  • 7
  • 70
  • 112