Re: Help about IDL [message #78151] |
Tue, 25 October 2011 10:39 |
Jeremy Bailin
Messages: 618 Registered: April 2008
|
Senior Member |
|
|
On 10/25/11 12:45 PM, Waleria wrote:
> Hi all,
>
> I need to use a binary file created in IDL to read in JAVA, but i'm
> having trouble.
>
> My code in IDL: http://pastebin.com/183KXxke
>
>
> My code in JAVA: http://pastebin.com/nbscx7sM
>
> I created a matrix: mat=[[0.10000000, 0.20000000],[0.40000000,
> 0.50000000]]
>
> So, when i do: print, mat[0,0] ...the result is 0.100000 that is
> correct
>
> But in the JAVA when i do: System.out.println("The value is "+ aux[i]
> [j]);
> The result is
> O valor da aux -4.29492128E8
> O valor da aux -4.28443584E8
> O valor da aux -4.2949216E8
> O valor da aux 8.8E-44
>
> That is incorrect.
>
> But i don't know what is wrong
>
> Can you help me??
>
> Thanks,
In your java code, you read the values into "mat" but then print out the
values of the uninitialized varaiable "aux".
-Jeremy.
|
|
|