sending decimals?
Oldbitcollector (Jeff)
Posts: 8,091
Has anyone done a "DecSend" based on the "StringSend" in the http demos?
OBC
OBC

Comments
StringSend(0, string("This page has been served ")) StringSend(0, string("<b>")) StringSend(0, STR.numberToDecimal(PageCount, 5)) StringSend(0, string("</b>")) StringSend(0, string(" times since powering on of the module"))My next demo version should have it fixed.
The following
StringSend(0, string(" <td><span id=",34)) StringSend(0, STR.numberToDecimal(proc, 1)) StringSend(0, string(34," class='refdesc-d'>",13,10))Is rendered as
But needs to be
The following overloaded function may be added to STREngine.spin - normally I would have one call the other with a parameter
thank you
/michael
I hadn't looked at the object close enough.
OBC
i changed line
358 to bytemove(@decimalCharacters[0], @decimalCharacters[(11 - length)], (length + 1))
from bytemove(@decimalCharacters[1], @decimalCharacters[(11 - length)], (length + 1))
this solved the issue of me with the " "