home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / TemaCD / DevPasc / _SETUP.3 / DevPascal.HLP
Text File  |  1998-09-26  |  2KB  |  55 lines

  1. <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN">
  2. <!--Converted with LaTeX2HTML 96.1 (Feb 5, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds -->
  3. <HTML>
  4. <HEAD>
  5. <TITLE>Frac</TITLE>
  6. <META NAME="description" CONTENT="Frac">
  7. <META NAME="keywords" CONTENT="ref">
  8. <META NAME="resource-type" CONTENT="document">
  9. <META NAME="distribution" CONTENT="global">
  10. <LINK REL=STYLESHEET HREF="ref.css">
  11. </HEAD>
  12. <BODY LANG="EN">
  13.  <A NAME="tex2html1452" HREF="node81.htm"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="../buttons/next_motif.gif"></A> <A NAME="tex2html1450" HREF="node51.htm"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="../buttons/up_motif.gif"></A> <A NAME="tex2html1444" HREF="node79.htm"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="../buttons/previous_motif.gif"></A> <A NAME="tex2html1454" HREF="node1.htm"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="../buttons/contents_motif.gif"></A> <A NAME="tex2html1455" HREF="node138.htm"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="../buttons/index_motif.gif"></A> <BR>
  14. <B> Next:</B> <A NAME="tex2html1453" HREF="node81.htm">Freemem</A>
  15. <B>Up:</B> <A NAME="tex2html1451" HREF="node51.htm">Functions and Procedures</A>
  16. <B> Previous:</B> <A NAME="tex2html1445" HREF="node79.htm">Flush</A>
  17. <BR> <P>
  18. <H2><A NAME="SECTION004229000000000000000">Frac</A></H2>
  19. <P>
  20. <A NAME="fuFrac"> </A>
  21. <A NAME=2148> </A>
  22. <H3><A NAME="SECTION004229100000000000000">Declaration:</A></H3>
  23. <P>
  24. <tt>Function Frac  (X : real)  : Real;</tt>
  25. <H3><A NAME="SECTION004229200000000000000">Description:</A></H3>
  26. <P>
  27. <tt>Frac</tt> returns the non-integer part of <tt>X</tt>.
  28. <H3><A NAME="SECTION004229300000000000000">Errors:</A></H3>
  29. <P>
  30. None.
  31. <H3><A NAME="SECTION004229400000000000000">See also:</A></H3>
  32. <P>
  33. <A HREF="node117.htm#fuRound">Round</A>, <A HREF="node88.htm#fuInt">Int</A>
  34. <P>
  35. <DL ><DT><STRONG>Example</STRONG>
  36. <DD>
  37. <PRE>Program Example27;
  38.  
  39. { Program to demonstrate the Frac function. }
  40.  
  41. Var R : Real;
  42.  
  43. begin
  44.   Writeln (Frac (123.456):0:3);  { Prints  O.456 }
  45.   Writeln (Frac (-123.456):0:3); { Prints -O.456 }
  46. end.</PRE>
  47. <P>
  48.  </DL><BR> <HR>
  49. <P><ADDRESS>
  50. <I>Michael Van Canneyt <BR>
  51. Tue Mar 31 16:48:49 CEST 1998</I>
  52. </ADDRESS>
  53. </BODY>
  54. </HTML>
  55.