drand48()

Marc Andreessen andreess at mrlax1.mrl.uiuc.edu
Thu May 9 08:16:04 AEST 1991


In article <1991May08.214654.26143 at lynx.CS.ORST.EDU> ghe at physics.orst.edu writes:
>#include <stdio.h>
>
>main()
>{
>    int i;
>
>    for (i = 0; i < 10; i++)
>        printf("%e\n", drand48());
>}
>What is the problem on RS/6000? Is it a BUG in drand48() or is it 'work
>as designed'??? :-( :-(

Neither.  Try declaring drand48 as double before using it.

Marc

-- 
Marc Andreessen___________University of Illinois Materials Research Laboratory
Internet: andreessen at uimrl7.mrl.uiuc.edu____________Bitnet: andreessen at uiucmrl



More information about the Comp.unix.aix mailing list