TinyCircuits

How to determine the width of a float number

How to determine the width of a float number
« on: October 09, 2019, 12:34:57 PM »
I'm using the TinyScreen+ and would like to determine the width of a float number (with 2 places to the right of the decimal). 

Looks like you can do this with strings as in
  int width=display.getPrintWidth("Example Text!");

So is there a similar way to do it with float numbers??

Thanks,

John