This article describes how to use the Round-Trip "R" Format Specifier in LightSwitch Visual Studio 2012.
It guarantees that a numeric type value that is converted into a string can be parsed back into the same numeric type value.
- For BigInteger when the value is formatted using such a specifier, its string representation consist of all the significant digits in the BigInteger value.
- When a single or double value is formatted using such a specifier, first it is tested for the general format, with 7 digit precision for single, and 15 digit precision for the double. Suppose the value is parsed back successfully to the same numeric value, it is simply formatted using the general format specifier.
Suppose the value is not parsed back successfully to the same numeric value. Then it is formatted using 9 digit precision for single and 17 digit precision for double











Join the conversation! Your thoughts help the community grow.