User Tools

Site Tools


en-us_products:mpino_studio2:box_functions:arithmetic:floor

FLOOR Box Function

Floor

Category: Arithmetic Box Functions

Behavior

Stores the greatest integer that is not larger than the source. For example, 12.8 becomes 12 and -1.2 becomes -2.

Syntax and Arguments

Syntax: FLOOR R0 R1

  • 1st = source: address or constant to round down
  • 2nd = destination: address that stores the result

Behavior Example

Run condition Before Command entered Expected result
Left condition ON R0=12.8 FLOOR R0 R1 R1=12.0

Inputs and results for Arithmetic Box Functions

Cautions

  • Make sure the result stays within the value range of the destination memory.

Box Functions in the Same Category

en-us_products/mpino_studio2/box_functions/arithmetic/floor.txt · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki