The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

hello,

domn question but i never : a integer so i don't konw hot to do it i thought that it was a / like integer:=interger/integer;

Krydea

sorry to ask it realy lame question..

domn question but i never : a integer so i don't konw hot to do it i thought that it was a / like integer:=interger/integer;

Krydea

sorry to ask it realy lame question..

Try to use a "REAL":

var

a,b,c: real;

begin

a := 10;

b := 3;

c := a / b;

end;

Here, b will get 3.33333 as its value.

Good luck!

Roosiedb

i will tel exacly what i whant to do..

furst i get F=Q/Z then i get X=X*F Y=Y*F so furst i have to calculate the Factor F of Q/Z and that can be a 3.333 but Q/Z are bouth integer X and Y to so i'm in serius troubel..

is this posible?

var

f :real;

x, y, q ,z :integer;

and perform the computation this way:

f := q / z;

x := round(x * f);

y := round(y * f);

All Courses

From novice to tech pro — start learning today.