Letter Meaning
R Round-trip
using System;
using System.Text;
using System.Globalization;
class Sample
{
public static void Main()
{
Console.WriteLine("{0:R}", 1f / 3f);
}
}
The output:
0.333333343
For the float and double types.
R squeezes out all digits to ensure ex- act round-tripping.