Understanding Number Systems in C Language

Before learning about data types, let’s first understand the number systems. 1. Decimal (十进制) The number system we use daily, with a base of 10, using digits 0-9. 123 = 1×10² + 2×10¹ + 3×10⁰ 2. Binary (二进制) With a base of 2, using digits 0 and 1. 1101₂ = 1×2³ + 1×2² + 0×2¹ … Read more

Introduction to C Language | Lecture 4: Deep Understanding of Number Systems and Code Systems, Mastering the Secrets of Basic Data Types

Introduction to C Language | Lecture 4: Deep Understanding of Number Systems and Code Systems, Mastering the Secrets of Basic Data Types 💡 Foreword: Many beginners in C language feel confused about number system conversion and data storage, such as why -1 is stored as 11111111 in computers? Why can’t floating-point numbers be directly compared … Read more

Common Number Systems in PLC and Conversion Methods

Common Number Systems in PLC and Conversion Methods

Follow “Technical Training” focused on automation education for 14 years A number system, also known as a counting system, is a method of representing numerical values using a fixed set of symbols and unified rules. Any number system consists of two basic elements: base and positional value. Base: The number of digits used in the … Read more