idl programming language - IDL D format -- 26/60 is not 26.d/60.d? -
i trying write like
ep = 23 + (26/60)
and give me ep=23; however, if change either of 26 or 60 26. or 26.d, ep=23.43 want.
i curious why this? try searching, question difficult express.
the result type of operation given types of arguments. above, in 23/60
, result should 0
using integer division. but, if 1 of 23
or 60
float (specified making them 23.
or 60.
, respectively), operation done float division. furthermore, setting 1 of them double makes operation done in double precision.
Comments
Post a Comment