what data type are fractions
C# Decimal Data Type and String Fractions. C# Decimal Data Type and String Fractions. Using C# .NET 4.0, I recently needed to stored a data element as a Decimal Data Type yet be able to present and edit the value as a string fraction. An example would be a user enters a fraction of 1/2 and it is stored as 0.5. Then when queried from the database it is then displayed as 1/2.