[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] Re: An escape from numerical reality
LightRate wrote
> And also, the 'new' method does not work for Integer, Float, or
> SimpleNumber... so it seems like the best way to get an instance of Float
> is to call 'asFloat' on an Integer object... or use FloatArray, or simply
> type out the decimal places.
The Literals help file explains that all floats written as literal numbers
must have a decimal point and a fractional part, even if that is 0:
1 // an Integer
1.0 // a Float
Otherwise the numeric type would be ambiguous.
hjh
--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/An-escape-from-numerical-reality-tp7629731p7629756.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/