comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Re: why is 1/8 =0 ?

Re: why is 1/8 =0 ?
type: item
description: In article j42@news.service.uci.edu, vshvetsk@fourier.oac.uci.edu (Victor Shvetsky) writes: > I am justr wondering- I just found out after trying to debug the program for three hours > that: 1/8 gives 0 in IDL unless you say: 1/8.0 > Is it such a well-known fact? ... > Victor > Well known to fortran programmers, anyway - integer divide gives the CORRECT integer result - if you want floats, you need to 'declare' them so. rc olsen nps
creator: olsen
date: 1994-05-21T18:41:29-00:00