Can Turing Machine work with decimal numbers?

1.1k Views Asked by At

I can do some operations on turing machine, but I use the binary forms of numbers, as the computers do. I wonder whether can I write decimal numbers on its tape and do calculation? Thanks in advance.

1

There are 1 best solutions below

0
On BEST ANSWER

Decimal numbers are strings of symbols. Thus they can be written on a TM tape and be manipulated in any computable way. This includes of course the normal arithmetic calculations.

Of course, you can only represent and manipulate decimal numbers with a finite number of significant digits (or one infinite one, but that does not seem useful). So in decimal, for example you cannot represent 1/3. If all rational numbers could occur, maybe the representation as fractions would be better, since it is always finite.