nodemcu / nodemcu-firmware

Lua based interactive firmware for ESP8266, ESP8285 and ESP32
https://nodemcu.readthedocs.io
MIT License
7.62k stars 3.12k forks source link

math.modf() dose not work! #3574

Open montotile opened 1 year ago

montotile commented 1 year ago

Expected behavior

nodemcu 5.1 math.modf() could be used.

Actual behavior

init.lua:144: attempt to call field 'modf' (a nil value)

Test code

print("math.modf_test:",math.modf(12.23))

NodeMCU startup banner

NodeMCU 3.0.0.0 built on nodemcu-build.com provided by frightanic.com branch: release commit: f25dc56d3c6213b8ac7ce46d1293466137746eae release: release DTS: 202112300746 SSL: false build type: float LFS: 0x0 bytes total capacity modules: file,gpio,http,mdns,mqtt,net,node,ow,pwm,tmr,uart,websocket,wifi,wifi_monitor build 2023-02-13 08:18 powered by Lua 5.1.4 on SDK 3.0.1-dev(fce080e)

Hardware

ESP8266