Excellent question, a REAL number loses accuracy the higher it counts A DINT can store whole numbers up to 2,147,483,647. Above 16,777,216, accuracy is lost. Here is a simple exercise. Create a REAL number and enter 16,777,216, then try to enter 16,777,217.
@@rcarter012 I suppose it is only quicker in the case where all the numbers in the equation are DINTs. But in that case you get the weird rounding issue presented in this video...
Great topic and explanation. Thanks!!
You are welcome Al.
I keep the same signal generator in my tool bag.. it is super good for the price.
Glad you like it 😁
What's the use of DINT then? Seems like REAL is the way to go....
Excellent question, a REAL number loses accuracy the higher it counts A DINT can store whole numbers up to 2,147,483,647. Above 16,777,216, accuracy is lost. Here is a simple exercise. Create a REAL number and enter 16,777,216, then try to enter 16,777,217.
Saves memory, likely increases speed
Both a DINT and a REAL are 32 but numbers, they take up the exact same about of memory.
@@rcarter012 I suppose it is only quicker in the case where all the numbers in the equation are DINTs. But in that case you get the weird rounding issue presented in this video...