Jump to content

Template:Rndfrac/doc

From Wikiversity

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 46
  • {{rndfrac|-9.123|20}} → −9 220

See also

[edit source]