FREXP.DEF 578 B

123456789101112131415
  1. FOREIGN DEFINITION MODULE FREXP;
  2. (* UNIX versions are INTERFACE --- this for the pc interpreter. *)
  3. (* interface to the standard C functions which manipulate REALs *)
  4. (* there is no need to specify that the implementation is in -lc *)
  5. PROCEDURE frexp(val : REAL; VAR exp : INTEGER) : REAL;
  6. (* returns the mantissa, and the exponent in exp *)
  7. PROCEDURE ldexp(val : REAL; exp : INTEGER) : REAL;
  8. (* returns val * 2^exp *)
  9. PROCEDURE modf(val : REAL; VAR iPart : REAL) : REAL;
  10. (* returns signed fraction part, and integer part in iPart *)
  11. END FREXP.