TGC Codebase Backup



Converting a value to minus. INV by Lucavi

29th Nov 2005 20:04
Summary

Does the opposite of ABS.



Description

Replace the # with othing to enable it for integers.



Code
                                    ` This code was downloaded from The Game Creators
                                    ` It is reproduced here with full permission
                                    ` http://www.thegamecreators.com
                                    
                                    function inv(number#)
   inversion# = number# * 2
   value# = number# - inversion#
endfunction value#