-->
Page 2 of 3

Re: Deactivation of floats in future LUA versions.

PostPosted: Thu Feb 05, 2015 6:56 am
by Theo
jankop wrote:I'm against it. If not rise significantly memory requirements of programs, so it is clearly beneficial. I even edited the first program for FP.

> =(600-600%70)/70
8
>

:D


This does not work for negative numbers !

Re: Deactivation of floats in future LUA versions.

PostPosted: Thu Feb 05, 2015 2:29 pm
by GeoNomad
+1 for disable floats in pre_build to save memory.

Especially if string.format and other similar side effects are not fixed.

Re: Deactivation of floats in future LUA versions.

PostPosted: Sun Feb 15, 2015 9:41 pm
by vowstar
The problem of string.format have fixed, the discussion is here.

https://github.com/nodemcu/nodemcu-firmware/issues/148

Re: Deactivation of floats in future LUA versions.

PostPosted: Sun Feb 15, 2015 10:12 pm
by picstart
Well the last working build was
NodeMCU 0.9.5 build 20150123 powered by Lua 5.1.4

this version also appears to work with 512K and 4m Flash

flash is 512K
latest nodemcu prebuild at 115200 baud errors
rl l | l | l b| r b b nn lnn b p lrlrlp n l b n | r b nn l l` nn l nr n b
l` p n r b n | b nn l` nn l nr n bl lp n r lb b n | l l b nn l` nn l
nr n ` r n ` MEM CHECK FAIL!!!
r


Adding float may not be the issue but things have gone awry since float was attempted.

I'm using the nodemcu prebuilds since the windows eclipse IDE by CHERTS does not compile error free for nodemcu-firmware so I can't get the float out of the compile.
The default for float should be to have it selected out of the prebuild's not selected in as it is now.