Around June of last year I asked the question of how to show various options of displaying data, showing different amounts of digits after a decimal. This question was asked for 3 options which Mignon Antoine was kind enough to help me with this Visual Logic

This worked just fine. Now, I would like to know how to add various options to this example. Instead of only three options, I was wondering how to modify this example to include 2, 4, 5, 6 and 7 digits after the decimal depending on a text input. The number is data that comes in through an RSS feed. Here is an example of what I would like to do:

The letters on the left side (XYZ, /6E, /6B & /6J) are the text input to determine the amount of digits after the decimal I would like to display. The number at the top of the page is an example of the incoming data through an RSS feed. Any help would be greatly appreciated. Thank you.