Why is it a number?

 
void OnStart() 
  { 
   int a='A'; 
   int b='$'; 
   string c='?';     
   string d='\xAE';   
   Print(a,b,c,d); 
  }
 
Why is an integer a rational number, just means all the numbers that aren't rational. Every integer is a rational number, since each integer n can be written in the form n/1. ... However,numbers like 1/2, 45454737/2424242, and -3/7 are also rational, since they are fractions whose numerator and denominator are integers.
 
helloea :

'A' is a character, represents a group of bits wich can be a number too.

Look at this: https://en.wikipedia.org/wiki/ASCII and https://en.wikipedia.org/wiki/UTF-8

UTF-8 - Wikipedia
UTF-8 - Wikipedia
  • en.wikipedia.org
UTF-8 Language(s) Standard Classification Extends Transforms / Encodes Preceded by It was designed for backward compatibility with ASCII. Code points with lower numerical values, which tend to occur more frequently, are encoded using fewer bytes. The first 128 characters of Unicode, which correspond one-to-one with ASCII, are encoded using a...
 
Kenneth Parling:
Why is an integer a rational number, just means all the numbers that aren't rational. Every integer is a rational number, since each integer n can be written in the form n/1. ... However,numbers like 1/2, 45454737/2424242, and -3/7 are also rational, since they are fractions whose numerator and denominator are integers.
Thank you very much!But it is very difficult for me to understand. I will try my best!
 
Edwin HernandoArtunduagaQuiñonez:

'A'是一个字符,代表一组也可以是数字的位。

看看这个: https //en.wikipedia.org/wiki/ASCII https://en.wikipedia.org/wiki/UTF-8

Thank you very much!It's like driving a car for me, but I'm at the stage where I don't have a license, and I should start by understanding the throttle and then learn how to use it. Am I right?
 
helloea:
Thank you very much!It's like driving a car for me, but I'm at the stage where I don't have a license, and I should start by understanding the throttle and then learn how to use it. Am I right?

No problem at all,you're welcome :) You will learn new things every day in this business....

I don't know if this helps you out but check it out anyway, read about Integers here;

https://www.sparknotes.com/math/prealgebra/integersandrationals/section2/

SparkNotes: Integers and Rationals: Classification of Numbers
SparkNotes: Integers and Rationals: Classification of Numbers
  • www.sparknotes.com
As you could see in the last section, with its various number lines, there are a number of different ways to classify numbers. In fact, there are even more ways to classify numbers than last section displayed. This section will run through the most important and common classifications. You should memorize what each classification means...
 
肯尼斯·帕林

没问题,欢迎你:)你会在这个行业中每天学到新东西......

我不知道这是否会帮助你,但无论如何都要检查出来,在这里阅读整数;

https://www.sparknotes.com/math/prealgebra/integersandrationals/section2/

Yes, I agree with you.Is this because of the inclusion of A and $in the integer class?
Reason: