Menu

Three new fraction related snippets added to Code Snippets Database

Three new routines for working with fractions have been added to the Code Snippets Database. NormaliseFractionSize ensures that the numerator of a fraction carries the sign while the denominator is always positive. The remaining two routines are for formatting a fraction as a string. FractionToStr formats a given numerator and denominator while FractionToStrEx does the same thing but also gives the option of normalising the fraction's sign.
link

Posted by SourceForge Robot 2013-02-16

Log in to post a comment.