Dword_to_dint function, Exp function, Exp( a ) – Delta RMC151 User Manual
Page 369: Dword_to_dint( a )
5 Programming
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
5.14.2.18. DWORD_TO_DINT Function
DWORD_TO_DINT(a)
Converts a DWORD to a DINT. a and its bit order remains the same, but type is changed to
DINT.
Parameters
a (DWORD)
The input value.
Return Value
Returns a DINT.
5.14.2.19. EXP Function
EXP(a)
Returns natural (e) raised to the a
th
power.
Parameters
a (REAL)
The input value.
Return Value
Returns a REAL.
Examples
EXP(1.0) returns 2.7182817
EXP(-1.0) returns 0.36787945
deltamotion.com
349