Site icon TestingDocs.com

Floor Function Demo RAPTOR Flowchart

Introduction

The floor function is a built-in RAPTOR function that rounds down the parameter to a whole number. For example,

floor(7.65) = 7

floor() function is used to get quotient in mathematical calculations.
Example:
102/10 = 10.2
To get quotient we can use the floor() function.
quotient = floor(102/10)
= 10
To get remainder we can use the mod or % function.
remainder = 102%10
= 2

 

Flowchart

Output

Floor of the number 6.9750 is :=6

Another example output of the flowchart is to provide a negative number and observe the result.

Floor of the number -7.9700 is :=-8

Floor of the number is the number itself.

Floor of the number 5 is :=5
Exit mobile version