On 30/05/05, Wolfgang <wollez / gmx.net> wrote: > Hello, > > I started programming not too long ago, so please excuse this question > if it is too silly. > > I wrote a small dll in fortran wich gives back a number. when I call > this dll from ruby I get this number only when it is defined as integer > in fortran. When I change it to real I get "1065353216" when the dll > should give back 1.0 > > What do I make wrong? > > Thanks > > Wolfgang > > It seems to me that you are reading the return value of the dll function as an integer, while a floating point number is returned. How are you're interfaces defined. Could you post some code? best regards, Brian -- http://ruby.brian-schroeder.de/ Stringed instrument chords: http://chordlist.brian-schroeder.de/