**Quaternary** is the base-4 numeral system. It uses the digits 0, 1, 2 and 3 to represent any real number.

quaternary (base 4) | decimal | quaternary (base 4) | decimal |
---|---|---|---|

1 | = 1 | 23 | = 11 |

2 | = 2 | 30 | = 12 |

3 | = 3 | 31 | = 13 |

10 | = 4 | 32 | = 14 |

11 | = 5 | 33 | = 15 |

12 | = 6 | 100 | = 16 |

13 | = 7 | 101 | = 17 |

20 | = 8 | 102 | = 18 |

21 | = 9 | 103 | = 19 |

22 | = 10 | 110 | = 20 |

The **decimal** numeral system (also called **base-ten** positional numeral system, and occasionally called **denary**) is the standard system for denoting integer and non-integer numbers. It has ten as its base.

decimal | quaternary (base 4) | decimal | quaternary (base 4) |
---|---|---|---|

1 | ≈ 1 | 11 | ≈ 23 |

2 | ≈ 2 | 12 | ≈ 30 |

3 | ≈ 3 | 13 | ≈ 31 |

4 | ≈ 10 | 14 | ≈ 32 |

5 | ≈ 11 | 15 | ≈ 33 |

6 | ≈ 12 | 16 | ≈ 100 |

7 | ≈ 13 | 17 | ≈ 101 |

8 | ≈ 20 | 18 | ≈ 102 |

9 | ≈ 21 | 19 | ≈ 103 |

10 | ≈ 22 | 20 | ≈ 110 |

quaternary (base 4) | decimal |
---|---|

1 | = 1 |

2 | = 2 |

3 | = 3 |

10 | = 4 |

11 | = 5 |

12 | = 6 |

13 | = 7 |

20 | = 8 |

21 | = 9 |

22 | = 10 |