Template:Rnd/c0dec1

From All Car Wiki - Car Specification Wiki
Jump to: navigation, search

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


Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
Social Networking
Google ads help us out