#138 make every literal number in expr a float

open
nobody
None
5
2014-06-17
2014-06-16
Anonymous
No

right now every literal int given to an expr object remains an int, however since pd has no int type this makes no sense, right? If these literal ints are in an operation with a value passed from pd it will be converted to float anyways, and in an integer division operation integers will come out, so instead the user could just supply that result as a float. It's a small thing that might not be worth fixing, and it would move a bit farther away from c

Discussion


  • Anonymous
    2014-06-16

    ...or perhaps just for division

     
  • i think the reasoning for the current behaviour is compatibility with older versions of expr (in Pd, jmax and Max/MSP).

     


Anonymous


Cancel   Add attachments