LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Does anyone know a block that I can use to round numbers down?

Solved!
Go to solution

@AeroSoul wrote:

Why is it called "Round to -Infinity" anyway?

Why isn't it called Round down?


What is -2.25 rounded down?  It is a little ambiguous.  Does it round to -2 or -3?  Round Toward -Infinity better defines it, forcing you to think it will correctly round to -3.

 

With that said, I do occasionally wish there was a Round Toward 0.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 11 of 13
(265 Views)

Good point.

I also sometimes miss Round to 0.

0 Kudos
Message 12 of 13
(259 Views)

Any other rounding option can easily be made and wrapped into a subVI. Having them in the palette would just contribute to palette bloat and confusion. 😄

 

 

altenbach_0-1652105965772.png

 

Message 13 of 13
(243 Views)