arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.69k stars 4.72k forks source link

Berry `math.min()` and `math.max()` #21705

Closed s-hadinger closed 2 days ago

s-hadinger commented 2 days ago

Description:

Add math.min() and math.max(), from upstream https://github.com/berry-lang/berry/pull/437

Both functions can take any number of arguments, but accept only int and real. If one of the arguments is real, then all arguments are converted to real and the result is real; otherwise the result is int

Checklist:

NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass