|
From: <Rob...@ao...> - 2001-03-06 16:04:05
|
In a message dated 06/03/01 14:33:57 GMT Standard Time,=20
pet...@im... writes:
<< trav_cost =3D (km_travelled * 0.3);
wear_cost =3D ((km_travelled / 1000) - ((km_travelled % 1000) / 100) *
200); >>
I'm not an expert myself - but maybe the compiler is treating 1000, 1000 &=20
100 as integers as there is no .0 involved? Maybe changing 1000 to 1000.0 an=
d=20
so on would resolve it? :-)
If not then back to the drawing board I'm afraid :-)
Rob! x ;o)
XANDER: Who's a little fear demon? Come on, who's a little fear demon?
GILES: Don't taunt the fear demon.
XANDER: Why? Can he hurt me?
GILES: No, it's just tacky.
...
GACHNAR: I am the Dark Lord! Fear me!
WILLOW: He=E2=80=99s so cute!
BtVS Season 4 - "Fear, Itself"
|