ActiveUI includes a set of classes, which can simplify data formatting:
Active.Formats.String Active.Formats.Number Active.Formats.Date
Below are the few examples how you may use those classes.
Formatting numbers