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 - set fixed control the fixed flag http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 set fixed           Control the fixed flag
------------------------------------------------------------------------------
 Syntax
   set fixed on|off

 Arguments
   None.

 Description
   The set fixed command controls the fixed flag.

   If the set fixed flag is on, Force displays the value of a
   double-precision expression with the number of decimal places defined in
   set decimals to.

   If the set fixed flag is off, Force displays double-precision numbers
   with as many decimal places as are needed.

 Example
   #define EXAMPLE_MATH
   #include example.hdr

   proc Test_setfixed
   ? ln( 3.1415 ) * ln( 3.1415 )
   setdecimals( 4 )
   set fixed on
   ? ln( 3.1415 ) * ln( 3.1415 )
   endproc

   proc main
   Test_setfixed()
   endproc

See Also: getfixed() set decimals to

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