How do i round off a real number or any other number to certain decimal values?
@MrLongITandCAT7 ай бұрын
You should use the RoundTo function. Like this: rNum := RoundTo( 22/7 , -2 ) The -2 after the comma means to 2 decimal places, -1 would be to 1 decimal place, -3 to three decimal places, and so on. But you will need to add Math at the top under Uses
@toi_za43722 жыл бұрын
I am trying to do the Inc procedure but with real variables It does not seem to work Please hel0
@MrLongITandCAT2 жыл бұрын
Inc only works with ordinal types like integers. real variables are not ordinal. You can do this instead: rNum := rNum + 1 ;
@ramzamthel8014 Жыл бұрын
thanks
@Killerbeast39607 ай бұрын
Why must we have a rInput variable ?
@MrLongITandCAT7 ай бұрын
Which aspect are you referring too?
@Killerbeast39607 ай бұрын
@@MrLongITandCAT No worry sir I have figured it out