SRL Archive - Help and Support

Extended var help please


phantombmx

2006-03-22 11:44:01

is there any way to round a decimal to a whole number using scar?

like i got the number 4695.652 and i want it to round to 4696 but i am not quite sure how i would go about doing that

thanks in advance

EDIT:

haha nvm i found it.. a simple scar proc called.. Round!! lol got that was a stupid moment

inferno

2006-03-22 13:04:06

Var
A : Integer;
B : Extended;

Begin
A := Round(B);
End.