Hi everyone,
I am trying to round off values to lowest whole number. Couldn't find Floor function on workvisual.
For example :
3.1 to 3
3.6 to 3
3.9 to 3
Hi everyone,
I am trying to round off values to lowest whole number. Couldn't find Floor function on workvisual.
For example :
3.1 to 3
3.6 to 3
3.9 to 3
You will have to roll your own.
I used my knowledge of advanced pancake chromodynamics and came up with this:
DEFFCT real Floor(FloorThis:in)
decl real FloorThis
decl int IntComp
IntComp = FloorThis
If (IntComp - FloorThis) > 0.00001 THEN
IntComp = IntComp -1
ENDIF
return IntComp
ENDFCT
Ought to work for most use cases.
Thanks Mentat. Appreciate your help, you made it easy.
I used my knowledge of advanced pancake chromodynamics and came up with this:
Best formulated response ever
...borderline epic even