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 - getdecimals() return the decimals setting http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 getdecimals()       Return the decimals setting
------------------------------------------------------------------------------
 Declaration
   getset.hdr

 Syntax
   func int getdecimals extern

 Arguments
   None.

 Return
   The current decimals setting.

 Description
   The getdecimals() function returns the current decimals setting.

 Example
   #define EXAMPLE_MATH
   #include example.hdr

   proc Test_getdecimals
   vardef
      uint n
   enddef
   set fixed on
   ? getdecimals()                       // prints 2
   ?
   for n := 0 to 15
      setdecimals( n )
      ? getdecimals(), 12.345678901234
   next
   endproc

   proc main
   Test_getdecimals()
   endproc

See Also: getsetdecimals()

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