Home javascript How is the difference called between 0x000000 and # 000000?

How is the difference called between 0x000000 and # 000000?

Author

Date

Category

There is a color that is denoted by 0x000000 , and there is # 000000 .

How is the difference between them correctly called?

Here is the first option, if I’m not mistaken 16-riche format ..


Answer 1, Authority 100%

In no way, these are simply different characters for the designation of the same sixteenth digit format of the number. Unlike you, the interpreter you just need to know what kind of number system you use there and to distinguish somehow bases, different characters are affixed. In this case, both symbols mean the same 0x {hex} = # {hex} = hex.

As a rule, it is simply said about the “form” form form.


Answer 2, Authority 50%

and second too)) hex if otherwise

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions