Skip to content

Instantly share code, notes, and snippets.

@fmayer
Created September 3, 2012 14:40
Show Gist options
  • Save fmayer/3609788 to your computer and use it in GitHub Desktop.
Save fmayer/3609788 to your computer and use it in GitHub Desktop.
>>> import numpy as np
>>> np.array([1, 2, 3]) / 2
array([0, 1, 1])
>>>
>>> from __future__ import division
>>> import numpy as np
>>> np.array([1, 2, 3]) / 2
array([ 0.5, 1. , 1.5])
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment