Contents | Prev | Next

5.15.12 real type

Description

real is the type identifier for a built-in type whose values are 64 bit real numbers.

Example

For example the rather pointless program below uses the real type to repeatedly divide a number into thirds.

   program thirds(output);
   const
      initial = 37.6;
      lowest= 0.05;
   var
      value : real;
   begin
      value := initial;
      repeat
         writeln(value, value:12:3);
         value := value / 3
      until value < lowest
   end.

Portability

Operating Systems: All
Standard Pascal: Yes

Contents | Prev | Next