Tag Archives: fractions

Use a scrollbar to select non-integer values in C#

The Trackbar and scrollbar controls let the user select integer values, but sometimes it’s useful to let the user select a non-integer value. You can let the user type into a text box but then the user can enter invalid … Continue reading

Posted in controls, mathematics | Tagged , , , , , , , , , , , , | Leave a comment

Find Egyptian fractions in C#

An Egyptian fraction is a fraction expressed as a sum of distinct unit fractions. For example, you can write 3/7 as 1/3 + 1/11 + 1/231. You can write any fraction as an Egyptian fraction and there may be more … Continue reading

Posted in algorithms, classes, mathematics | Tagged , , , , , , , , , , | Leave a comment