Home >Backend Development >PHP Tutorial >Some thoughts on paragon ntfs for mac php cout<<

Some thoughts on paragon ntfs for mac php cout<<

WBOY
WBOYOriginal
2016-07-29 08:41:431122browse

That is, the sum of the digits of the integer and the decimal should not exceed 6 digits. If the decimal part is too long, the system will round it to approximately 6 digits. If the integer part is too long, it will also be approximately 6 digits. For example:
cout< ;<123.4567 results in 123.457,
cout<<123.4564 results in 123.456,
cout<<123456.1 results in 123456,
cout<<123456.5 results in 123457
For constant strings, theoretically infinitely long, but Due to the limitations of the VC++ compiler, if the constant string is long enough to cause a line break, it will cause a compilation error. In other words, if cout<< is followed by a constant string, the length of the string is limited to 1 line in the compiler.
For the case of adding a variable after cout<<:
Let’s talk about the case with decimals first, which is slightly different from the constant number. The output result is related to the type of the variable. The int type is output according to the prototype, and the double type is 6 digits ( Including 6 digits) are output according to the prototype, and above 6 digits are output according to the Science and Technology Law. Other types are similar. By the way, the range of int type is -214783648~214780647, a total of 2^32 power numbers. Even if it goes out of bounds during assignment, the compiler will not report an error or warn, so be careful. There is common sense. If To represent the global population (about 6 billion), double or long double types should be used, other types are not acceptable; for variable strings, that is, char arrays, I did not find any restrictions, because I wrote:
char v[50000 ];
memset(v,1,49999);
cout<, countless little round faces (characters with ASCII code 1) appear on the screen, even if memset is used to assign an out-of-bounds value , no problem.
The above introduces some views on paragon ntfs for mac php cout<<, including the content of paragon ntfs for mac. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn