Author Topic: issue with basiclabel numericformat + valuescalefactor  (Read 1387 times)

brady

  • Newbie
  • *
  • Posts: 2
    • View Profile
issue with basiclabel numericformat + valuescalefactor
« on: July 27, 2016, 07:55:18 PM »
I'm currently using a basiclabel with numericformat = 0.00 and a valuescalefactor of 0.01. This will then format a value of 1234 from Modbus to display as 12.34
I tried changing the numericformat to "P", which should display percentage with 2 decimal places. It does this, but the valuescaleoffset does not seem to be applied- so it's showing 1234.00% in the basiclabel.

Godra

  • Hero Member
  • *****
  • Posts: 1457
    • View Profile
Re: issue with basiclabel numericformat + valuescalefactor
« Reply #1 on: July 27, 2016, 09:25:07 PM »
This link shows that value is multiplied by a 100 when P format is used:

https://msdn.microsoft.com/en-us/library/dwhawy9k(v=vs.110).aspx