I go to terminal on my mac and type python
. The standard stuff shows up:
Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Now I am using the terminal to do simple calculations. I simply type in the following below and keep getting a segmentation fault 11. It seems to be from the decimal point I keep inserting.
>>> a=1./2
>>> b=2./3
Segmentation fault: 11
Does anyone know why this is happening? I never had this happen before. How else would you force floating point numbers? Thank you