Get the integer value from real one Unity pro

Hi everyone :*

I am using using unity pro v.13 i want to do the mathematical function of floor() which makes for example 1.2 to 1 and makes 2.9 to 2. How can i do this is there a block for this function?


Thank you:book:
 
The Block to use is Real_Trunc_Int
It Converts a real to integer and truncates it in the direction of zero. If you dont want in in that direction then you must write some custome FB

real_trunc_int.JPG
 

Similar Topics

The analog array has 16 individual bits and each bit is an alarm. SCADA is having issues getting the BIT bool value. However they can get the...
9
Replies
3,540
Views
Hello, I need a little help. I’m looking for a way to program integer values to activate a bit for an alarm. for example... If any Integer[0] thru...
41
Replies
11,264
Views
Have beginner knowledge of digital controls, and intermediate/advanced knowledge of socket clients and listeners (written logging proxies, socket...
9
Replies
4,999
Views
Hi, Can someone help me explain in detail this integer Value. N7[4+((N151_0 AND -16)/16)].[N151_0 AND 15] Based on my understanding in the...
6
Replies
3,385
Views
Hello everyone, Does anyone know how can I display the integer value(which is equivalent of seconds) into time format hh:mm:ss in Centum VP...
0
Replies
1,939
Views
Top