[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] Re: .frac, .sign - perhaps other SimpleNumber primitives???



We should either revert to using x-floor(x), or set the FPU rounding direction to downward in the language, as that's the condition for sc_frac to work :
#include <fenv.h>
fesetround(FE_DOWNWARD);

Le 16 déc. 09 à 11:25, Tim Blechmann a écrit :

Just saw this in the new build:

0.6.frac
-0.4

it should return 0.6

0.6.sign

returns a float, not 1

oddly, my master branch works fine, but the svn trunk doesn't ... i will
have a closer look, what is going wrong ...

thanks, tim

--
tim@xxxxxxxxxx
http://tim.klingt.org

All we composers really have to work with is time and sound - and
sometimes I'm not even sure about sound.
 Morton Feldman



_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/