LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

entire and decimal part of a number

hi,
 
I would like to obtain the entire and decimal part of a number!
 
For example :  6.667  will return 6 for entire part  and 0.667 for decimal part.
 
I thought there was something to do this in labview but I did'nt find it.
 
 
tks for your help
0 Kudos
Message 1 of 4
(2,874 Views)
I dont know if LabVIEW comes with something like this.  At least not that I can think of.  Making your own should be trivial.  Heres a sub-vi I coded up real quick for your use.
0 Kudos
Message 2 of 4
(2,865 Views)

The following code snippet will do the job:

Message Edited by tbob on 10-05-2005 11:23 AM

 

Chaos has faster fingers than me.

 

Message Edited by tbob on 10-05-2005 11:24 AM

- tbob

Inventor of the WORM Global
0 Kudos
Message 3 of 4
(2,866 Views)
Feed the number to the upper terminal of "Quotient and remainder" and wire a "1" to the lower input.
 
the IQ output will have the whole number and the R output will have the fractional part. Try it! 🙂

Message Edited by altenbach on 10-05-2005 10:27 AM

Message 4 of 4
(2,863 Views)