User Tools

Site Tools


en-us_products:mpino_studio2:box_functions:arithmetic:sqrt

SQRT Box Function

Square Root

Category: 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

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/sqrt.txt · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki