**class CExtGridCellFraction : public CExtGridCellNumberBase
**

#### Remarks

The **CExtGridCellFraction **class implements a fraction cell,
which displays the cell floating-point value as a fraction. You can customize
fraction representation using several predefined constants.

#### Header

ExtGridWnd.h

#### Constants

The following constants allow
you to change fraction representation of the cell floating-point value (the **CExtGridCellFraction::e_FractionType_t** enumeration):

Value |
Meaning |

eNone |
Displays the simplified
fraction, e.g. 12.3456 is displayed as 216/625. |

eUpToOneDigit |
Rounds to the nearest fraction using single digits in both the numerator and denominator, e.g. 12.3456 is displayed as 12
1/3. |

eUpToTwoDigits |
Rounds to the nearest fraction using up to two
digits in both the numerator and denominator,
e.g. 12.3456 is displayed as 12 28/81. |

eUpToThreeDigits |
Rounds to the nearest fraction using up to three
digits in both the numerator and denominator,
e.g. 12.3456 is displayed as 12 216/625. |

eUpToFourDigits |
Rounds to the nearest fraction using up to three
digits in both the numerator and denominator,
e.g. 12.3456 is displayed as 12 216/625. |

eAsHalves |
Rounds to the nearest fraction with denominator 2,
e.g., 12.3456 is displayed as 12 1/2 but 12.2 as 12. |

eAsQuarters |
Rounds to the nearest fraction with denominator 4,
e.g., 12.3456 is displayed as 12 1/4 but 12.1 as 12. |

eAsEighths |
Rounds to the nearest fraction with denominator 8,
e.g., 12.3456 is displayed as 12 3/8. |

eAsTenths |
Rounds to the nearest fraction with denominator 10,
e.g., 12.3456 is displayed as 12 3/10. |

eAsSixteenths |
Rounds to the nearest fraction with denominator 16,
e.g., 12.3456 is displayed as 12 6/16. |

eAsHundredths |
Rounds to the nearest fraction with denominator 100,
e.g., 12.3456 is displayed as 12 35/100. |

#### See Also

Class Members | Hierarchy Chart