Contact: aviboots(AT)netvision.net.il
41,162 questions
53,654 answers
573 users
program RoundRFoatingPoint; var y: integer; x: double; begin x := 9382.4; y := round(x); WriteLn(y); x := 9382.5; y := round(x); WriteLn(y); x := 9382.6; y := round(x); WriteLn(y); end. (* run: 9382 9382 9383 *)