Search found 2 matches

by pauljohnleonard
Wed Aug 27, 2014 12:18 pm
Forum: General Discussion and Questions
Topic: Array of floats
Replies: 4
Views: 14617

Re: Array of floats

Sorry about the delay (been busy/on leave). stijn's fix seems to help but still some problems (does not convert my int on assignment). Using the unix build . . . . >>> from array import * >>> x=array('f',[0.0,1.0,2.0]) >>> x array('f', [0.0, 1.0, 2.0]) >>> x[1]=3.0 >>> x array('f', [0.0, 3.0, 2.0]) ...
by pauljohnleonard
Tue Jul 29, 2014 12:19 pm
Forum: General Discussion and Questions
Topic: Array of floats
Replies: 4
Views: 14617

Array of floats

Trying to run some DSP code but . . . >>> array.array('f',[0]) Traceback (most recent call last): File "<stdin>", line 0, in <module> ValueError: bad typecode Does this mean I can not create an array of floats?