V
V
Viktor Chernyugov2016-11-25 13:51:34
Programming
Viktor Chernyugov, 2016-11-25 13:51:34

In what al language can the algorithm for converting decimal numbers to octal be represented?

There is no algorithmic language that can use both decimal and octal numbers.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Adamos, 2016-11-25
@Adamos

There are no decimal and octal numbers.
There are numbers, but there is their notation - binary, octal, decimal, hexadecimal...
The number is the same, but the line of text representing it is different.

M
Mercury13, 2016-11-25
@Mercury13

In C it is possible - 0123 = 123 8 . But why do you need it?
Usually a number in any positional number system - 10th, 8th, 16th - is written in a line. And I don’t say “transfer from the 10th system to the 8th”, but “transfer from the native system to the octal system” - because it doesn’t matter which system is native, the main thing is that we can perform arithmetic operations in it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question