SDK - Apply FormatString to a value

Pretty sure we’re just using the DecimalFormat class behind the scenes, so it would be something like this:

formatter = DecimalFormat(tag.getAttribute(TagProp.FormatString))
formatter.format(tag.getValue().getValue())
2 Likes