# Kategorija:Podpredloge predloge Rnd

Spodaj je seznam podpredlog predloge {{rnd}}. Ta seznam izključuje glavno predlogo in njene dokumentacijske strani.

## Koda

```{{formatnum:{{rnd/a|{{#expr:({{{1}}})round({{{2}}})}}|{{{2}}}}}}}
```

### A

```{{rnd/c{{rnd/b|abs{{{1}}}|{{{1}}}|{{{2}}}}}|{{{1}}}|{{{2}}}}}
```

It calls {{rnd/b}} which crunches out a code to determine which of the {{rnd/c*}} subtemplates to go to next.

### B

```{{#ifexpr:{{{2}}}=0|0|{{#ifexpr:{{{2}}}<0|-}}{{#ifexpr:{{{1}}}<10^5|{{#ifexpr:{{{1}}}<0.0001|2|4}}|{{#ifexpr:{{{1}}}<10^9|{{#ifexpr:{{{1}}}/10^5round0={{{1}}}/10^5|6|4}}|8}}}}}}dec{{#expr:{{{3}}}>0}}
```

### C

The {{rnd/c*}} subtemplates can be divided into four groups. There are the "dec0"s and "dec1"s and the positives and negatives. Negatives give a negative output. "dec1"s will give an output precision greater than zero.

They can also be divided into five groups. Take take the absolute value of the number after the c halve it. Call the result the "group number".

Skupina 0
gives zero
Skupina 1
gives scientific notation with a negative exponent
Skupina 2
gives regular numerical notation with a precision greater than −5
Skupina 3
gives regular numerical notation with a precision less than or equal to −5
Skupina 4
gives scientific notation with a positive exponent

## Strani v kategoriji »Podpredloge predloge Rnd«

Ta del kategorije vsebuje 10 naslednjih strani, od skupno 10.