Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - fraction() return the fraction part of a real number http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 fraction()          Return the fraction part of a real number
------------------------------------------------------------------------------
 Declaration
   math.hdr

 Syntax
   func dbl fraction extern
   param value dbl eNumber

 Arguments
   eNumber is a real number.

 Return
   The fraction part of the passed numeric.

 Description
   The fraction() function returns the fraction part of a passed real
   number.

 Example
   #define EXAMPLE_MATH
   #include example.hdr

   proc Test_fraction
   ? fraction( -123.456 )
   ? fraction( 987.001 )
   ? fraction( 0.123 )
   ? fraction( -0.123 )
   ? fraction( 0 )
   ? fraction( 1 )
   ? fraction( 99990 )
   endproc

   proc main
   Test_fraction()
   endproc

See Also: trunc()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson