09-18-2009 06:48 AM
Hello Friends
I m new to the Teststand .I have interest to learn Test stand and i know LabVIEW Somwhat.I have to initialise the locals as an integer and it pass to another locals its a real integer .It takes that value is in floating value.For example i m dividing one number ie 53/10.The result should 5.3 but i need only the integer as 5 only.But i get when i changed the format in locals but it pass to another real integer loclas it shows as 5.3 value.How to convert it.
Solved! Go to Solution.
09-18-2009 08:41 AM
First TestStand only supports a single numeric data type and that is a float.
So you can't convert it to an integer in TestStand, but you can round the number to a whole number integer.
Round(53/10,0)
Number Round(Number number, Number option = 0)
This function rounds a number to an integer.
Parameter 1: The number to round.
Parameter 2: An optional parameter: how to round.
Pass 0 to rounds towards zero (the default).
Pass 1 to round away from zero.
Pass 2 to round towards positive infinity.
Pass 3 to round towards negative infinity.
Pass 4 to round to the nearest integer. If the number is exactly between two numbers, rounds to the nearest even integer.
Returns: The rounded number.
Omar
09-18-2009 11:41 PM
Hello Omar
Thanks for ur reply Omar.But i need one example its easy to understand the concept ..
09-18-2009 11:57 PM
Hello Omar,
I got the answer thanks for ut reply omar...