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 nwidth to set width of numerics http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 set nwidth to       Set width of numerics
------------------------------------------------------------------------------
 Syntax
   set nwidth to uWidth

 Arguments
   uWidth is the display width for numeric values.

 Description
   The set nwidth to command sets the display width of numeric values.
   Valid values for the uWidth parameter range from 1 to 15. The default
   value is 10.

 Example
   #define EXAMPLE_MATH
   #include example.hdr

   proc Test_setnwidthto
   vardef
      uint n
   enddef
   ? 10                 // corresponds to the default setting of 10
   set fixed on         // set fixed has no effect on set nwidth to
   ? 10
   for n := 1 to 15
      set nwidth to n
      ? n
   next
   endproc

   proc main
   Test_setnwidthto()
   endproc

See Also: set decimals to

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