i want to do the sum 'A / 2.55' where A is an integer, and i want the result as an integer. delphi sees 2.55 as an extened type. i presume i need to convert the A to extended, then the result to an integer. something like:
(java)Integer.parseInt(Float.parseFloat(I)/2.55);
how do i do this in delphi though?
ps - my current code looks like this:
ProgressBar1.Position := A/255;
(java)Integer.parseInt(Float.parseFloat(I)/2.55);
how do i do this in delphi though?
ps - my current code looks like this:
ProgressBar1.Position := A/255;