[Jprogramming] Controlling implicit conversions?

Yuvaraj Athur Raghuvir yuvaraj.a.r at gmail.com
Wed Jan 2 14:29:06 HKT 2008


Hello,

I see the following behaviour:

   3!:0 (a =. 0.0)
1
   3!:0 (a =. 1.0)
1
   3!:0 (a =. 2.0)
4
   3!:0 (a =. 2.1)
8


>From this I understand that J converts implicitly before the assignment.

I want to retain 0.0 & 1.0 as floats with copula(=. or =:). How can I do so?


Regards,
Yuva


More information about the Programming mailing list