Automatic typecasting of int to float

2013-12-14 Thread Petrus Hyvönen
Hi! I am converting some java code to python scripts, using a JCC wrapped library. One thing that strikes me is that java seems to have a automatic typecast of int to float, which is not present in the JCC wrapped library. i.e. if a tmp=100 and obj.shift(tmp) is executed, and the method

Re: Automatic typecasting of int to float

2013-12-14 Thread Petrus Hyvönen
Hi, Yes sorry it should have been float(tmp). Yes, could be added to the java code, and if it's complex its probably not an issue in many cases. Regards /Petrus On 14 Dec 2013, at 20:59 , Andi Vajda va...@apache.org wrote: On Dec 14, 2013, at 16:46, Petrus Hyvönen