DINT_TO_REAL (a)
Converts a DINT to a REAL.
Parameters
a(DINT)
The input value.
Return Value
Returns a REAL.
Remarks
For values beyond +/- 16,777,216 some rounding will occur since REAL values are only precise to 24 bits of precision. For example, 17,000,003 will become 17,000,004.0.
Examples
DINT_TO_REAL(5) returns 5.0
See Also
REAL_TO_DINT Function | DINT_TO_DWORD Function | DWORD_TO_DINT Function | Standard Functions
Copyright © 2024 Delta Computer Systems, Inc. dba Delta Motion