типы-данных

How to set the number of decimal places for a specific c++variable

There are three variables of type double. You need to make 1 decimal place for the first variable t, and make 3 decimal places for the remaining two x and y. How can this be implemented?

Type of the register variable

What type of variable is declared with the keyword register? I met this code. What is the type of the n variable here? int main() { register n; }

Why is a long int used for storing time, and not an unsigned long int?

If I'm not mistaken, the problem of 2038 concerns only those programs that used 32-bit long int to work with time. But why di ... rking with an unsigned type, this would be the problem of 2106. On Wikipedia there is a corresponding gif for the sign type:

What data types in Oracle correspond to the WORD and DWORD types?

What data types in Oracle correspond to the WORD and DWORD types?

A dictionary from a tuple of tuples in Python

There is a tuple of the form ((key, value), (key, value), (key, value)...) How to make a dictionary out of it { key:value, key:value, key:value ...} ?

How to convert centimeters to meters in SWIFT

I ran into a problem with SWIFT. You need to create variables with certain types of data and take the values in the variables ... to enter the height in meters, and this will be 1.76, but the type I have is Int. Help me figure it out. I'm terribly stupid.

Create your own C statement#

I want to rewrite the division operator to my own!!! (the " / " operator is kind of idiotic with it. For some reason, Melkoso ... rested in the syntax of declaring your own data type and OPERATOR!!! So that you can just: My_data a1,a2,a3; a3= a1 div a1;

You need to calculate the date that will come in M days c++

Completed the task for the next day's output. You need to calculate the date that will come in M days. With this problem, ple ... ut << "Завтра: " << day << "." << month << "." << year << endl; getch(); } ```

Explain how the decimal(n,n2) data type works)

What do the parameters n and n2 mean ? I need to store the cash balance in the db

All c++Data Types

What are the data types in C++? Who could logically put it in its place? There are standard types (int, double...), custom class types and aggregate (structures). Right? Please correct me

Lost 1 bit in long double

Following the question about the bit representation of real numbers and my answer to it. I want to programmatically determin ... 79 bits. Instead of 80. Where's the other bit? long double is a 10-byte numbers, but sizeof returned 16. How can I get 10?

Float type range

Reading Ritchie and Kernighan. C. It says that float is a 32-bit type, but then it says that its range is 10-38 – 10+38. Why ... , how bit depth affects operation, etc. All I have in mind is Tannenbaum, the architecture of the computer. Or won't that do?

Why use int instead of short int?

Why in most of the examples that I look at on the Internet for storage in an integer type variable, in which you need to stor ... s of memory when you can use 2 bytes, or people are just too lazy to write short before int. Is there any difference in this?

What is the meaning of reinterpret cast?

In C++, there is an operator reinterpret_cast, the meaning of which is to cast between types that are incompatible with each ... tatic_cast and dynamic_cast. What, then, is the meaning of the existence of this operator, if its use violates the standard?

Which is better to use, uint or int as the function argument if the value should be>=0. What should I use as an identifier?

In someone else's C# code, I don't find it anywhere uint, ushort, ulong. If a strictly positive argument is required, then th ... f the projects I have haven't seen any negative IDs)? Is there any reason to use the regular int instead uint(unsigned int)?

How do I fix the precision of the float variable?

So, you need to fix a certain accuracy of variables of the float type, i.e., to write numbers in them with an accuracy of, fo ... How can this be done? Important!!! Don't withdraw! And so that the variable а stores a number with 2 decimal places. Thanks!

How do I check a variable for the str type in Python 3?

Task: Check the variable for belonging to the type string in the programming language Python 3 Hi everyone. In the process ... . In this case, I will ask you to give links to the answers, the question itself can delete (if the answers solve my problem)

How do I convert int to char?

Who knows how to translate int to char[]? Very necessary. (You can even use intermediaries, like bytes.)

What data type to choose for email in PostgreSQL

Is there a specialized data type for storing email? Or you can use character types, such as: character varying(n), varchar(n ... , padded with spaces text - a string of unlimited variable length. Printscreen of possible data type options in pgAdmin 4: