Start a new topic

nexnumber to show a float?

is there a way to get nexnumber to show a float?

  eg 1.22

it only shows 1

1 Comment


Nextion uses integer math and does not have floating point.  So as you are sending this to the Nextion over serial, have a routine do the conversion first to text as "1.22" and send it to a text component.

There are also several posts with algorithms on how to do this on the Nextion in event code using variables and making use of the cov instruction.  But as you are using NexNumber, it is easier to do from your connecting MCU before sending.

Login or Signup to post a comment