SignalExpress

cancel
Showing results for 
Search instead for 
Did you mean: 

SignalExpress function int(x) same as floor(x)?

SignalExpress help describes the function int(x) as rounding x to the nearest integer, but it functions the same as floor(x).

 

For example:

 

y = int(x0) where x0 = 2.9, y = 2.0

y = int(x0) where x0 = 2.4, y = 2.0

y = int(x0) where x0 = -2.4, y = 3.0

y = int(x0) where x0 = -2.9, y = 3.0

 

y = floor(x0) where x0 = 2.9, y = 2.0

y = floor(x0) where x0 = 2.4, y = 2.0

y = floor(x0) where x0 = -2.4, y = 3.0

y = floor(x0) where x0 = -2.9, y = 3.0

 

where x0 is the input analog input to the USB-6009

 

y = ceil(x) works as advertised.  Am I missing something here?

 

Thanks - Bill

0 Kudos
Message 1 of 4
(6,336 Views)

Hi Bill,

 

You are definitely not missing something.  I was able to reproduce the incorrect function operation here on my end.  I would like to file a corrective action request on the matter, and need some information from you.  Which version of SignalExpress are you using?  Thanks!

 

David

Applications Engineer

National Instruments

David
Applications Engineer
National Instruments


Digital Multimeters
0 Kudos
Message 2 of 4
(6,321 Views)

Thank you, David, for the reply.  I am using SignalExpress Version 3.0.0

 

 

0 Kudos
Message 3 of 4
(6,317 Views)
Do you know of a work around for int(x)?
0 Kudos
Message 4 of 4
(6,312 Views)