is there a way to get nexnumber to show a float?
it only shows 1
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.