====== SQRT Box Function ====== **Square Root** Category: [[en-us_products:mpino_studio2:box_functions:arithmetic|Arithmetic Box Functions]] ===== Behavior ===== Stores the square root of the source. Use R memory as the destination when the result must retain its fractional part. ===== Syntax and Arguments ===== **Syntax:** ''SQRT D0 R0'' * 1st = source: nonnegative address or constant * 2nd = destination: address that stores the result ===== Behavior Example ===== ^ Run condition ^ Before ^ Command entered ^ Expected result ^ | Left condition ON | D0=81 | ''SQRT D0 R0'' | R0=9.0 | {{ :en-us_products:mpino_studio2:arithmetic-examples.svg?1000 |Inputs and results for Arithmetic Box Functions }} ===== Cautions ===== * Make sure the result stays within the value range of the destination memory. * Use a nonnegative source. Use R memory as the destination to retain a fractional result. ===== Box Functions in the Same Category ===== * [[en-us_products:mpino_studio2:box_functions:arithmetic:add|ADD View details]] — Add * [[en-us_products:mpino_studio2:box_functions:arithmetic:sub|SUB View details]] — Subtract * [[en-us_products:mpino_studio2:box_functions:arithmetic:mul|MUL View details]] — Multiply * [[en-us_products:mpino_studio2:box_functions:arithmetic:div|DIV View details]] — Divide * [[en-us_products:mpino_studio2:box_functions:arithmetic:mod|MOD View details]] — Modulo * [[en-us_products:mpino_studio2:box_functions:arithmetic:inc|INC View details]] — Increment * [[en-us_products:mpino_studio2:box_functions:arithmetic:dec|DEC View details]] — Decrement * [[en-us_products:mpino_studio2:box_functions:arithmetic:scale|SCALE View details]] — Scale (Linear Interpolation) * [[en-us_products:mpino_studio2:box_functions:arithmetic:floor|FLOOR View details]] — Floor