nodemcu/nodemcu-firmware

math.modf() dose not work!

montotile opened this issue · 0 comments

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: f25dc56
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