Template:Rndfrac

Frae Wikipedia, the free beuk o knawledge
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

This template rounds to a fraction. It takes two parameters.

  1. the number to be rounded (any real number)
  2. the denominator to be rounded to (positive interger)

Fractions are expressed in the simplest terms.

The template calls {{gcd}} and {{rndfrac/out}}.

  • {{rndfrac|0.1234|8}}18
  • {{rndfrac|12.65|6}}12 23
  • {{rndfrac|-9.123|20}} → −9 110

See also[eedit soorce]