coates’s avatarcoates’s Twitter Archive—№ 20,795

    1. …in reply to @ramsey
      ramsey …and string-gotcha notation! (-; php > print("15" + 0); 15 php > print("15welp" + 0); 15 php > print("015welp" + 0); 15 php >
  1. …in reply to @coates
    ramsey Weird Python thing: you can specify numeric literals with _ as a separator for visual clarification: >>> 1234567890 1234567890 Is that 123 million or 1.2 billion? >>> 1_234_567_890 1234567890 Billion it is. Works with decimals too: >>> 1_234_567_890.12 1234567890.12