PLC-lang / StandardFunctions

Standard functions for PLC as described by IEC61131
GNU Lesser General Public License v2.1
10 stars 2 forks source link

Move EXPT from builtin to STD #76

Closed mhasel closed 1 year ago

mhasel commented 1 year ago

This PR implements the EXPT function as a generic function in the stdlib, so it can be removed from ruSTy builtins. EXPT will now always return REAL or LREAL, depending on the base parameter. This mirrors the expt implementation in C.