lh-
Member level 1
i need to use a real for some calculation but when i use that real, the integer part of it is used:
this does 3/2=1.5 instead of 3.3/2=1.65
and for 3.7: 4/2=2 instead of 3.7/2=1.85
Code:
// ...
real a;
// ...
a=3.3;
a=a/2;
and for 3.7: 4/2=2 instead of 3.7/2=1.85