Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ibrahimbougaoua/octal
Decimal to Octal converter
https://github.com/ibrahimbougaoua/octal
Last synced: 11 days ago
JSON representation
Decimal to Octal converter
- Host: GitHub
- URL: https://github.com/ibrahimbougaoua/octal
- Owner: ibrahimBougaoua
- License: gpl-3.0
- Created: 2018-07-27T13:05:05.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-27T13:08:45.000Z (over 6 years ago)
- Last Synced: 2024-11-24T19:59:19.375Z (about 2 months ago)
- Language: C
- Size: 17.6 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# octal
Decimal to Octal converterConversion steps:
Divide the number by 8.
Get the integer quotient for the next iteration.
Get the remainder for the binary digit.
Repeat the steps until the quotient is equal to 0.Decimal to octal conversion examples
(24)10 = (30)8
(112)10 = (160)8
(2048)10 = (4000)8Decimal Octal
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 10
9 11
10 12
11 13
12 14
13 15
14 16
15 17
16 20