Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>decimals() - get set decimals value, # decimals in var</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     decimals() - get SET DECIMALS value, # decimals in var
  Usage:    <integer> = decimals([<integer>])
  Params:   optional <integer> - an integer variable to check. This
            affects the return value if sent.
  Returns:  when no parameters are passed decimals() returns
            an integer equal to the current SET DECIMALS setting.
            If an integer type variable is passed, decimals()
            returns the number of decimals that the integer contains,
            and not the SET DECIMALS TO value.

 ---------------------------------- Example ---------------------------------

                 set DECIMALS to 4
                 ? decimals()
                 * prints 4

                 m_number = 100.00563
                 ? decimals(m_number)
                 * prints 5

                 ? decimals(1)
                 * prints 0

                 ? decimal(1.0)
                 * prints 1


See Also: status() fkey() default() margin() path()

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