answersLogoWhite

0

The number of bytes occupied by a specific data type depends on the implementation. In general, the double data type is eight bytes long, but you can check it using sizeof(double). In 16-bit,32-bit compilers double size is

8 bytes.It looks like float because it stores scientific and financial like big float values.

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

What is the data type int?

Data-type (short for integer).


Why long data type converted to double by multiplying by 1.0?

If two numbers are involved in a calculation (in this case a multiplication), the result is converted to the more precise data type, to avoid data loss. Even though between long and double data can be lost in either direction, a number with decimals (such as double) is generally considered to be more precise than a number without decimals (such as long). Even though languages such as Java also have a "float" data type, "double" is normally used by default in cases such as these, because of the greater precision. However, you can convert explicitly to float, if you like, using a cast. (Float uses 4 bytes, while double uses 8 bytes.)


Which numeric data type has storage capacity of 3 bytes?

For Microsoft SQL Server there are no numeric values that consume 3 bytes. The numeric data types, their value range, and byte consumption as we follows: Data type Range Storage bigint -2^63 (-9,223,372,036,854,775,808) to 2^63-1 (9,223,372,036,854,775,807) 8 Bytes int -2^31 (-2,147,483,648) to 2^31-1 (2,147,483,647) 4 Bytes smallint -2^15 (-32,768) to 2^15-1 (32,767) 2 Bytes tinyint 0 to 255 1 Byte


How many bytes are allocated in the bool data type?

bool (lowercase, built-in type) has an unspecified size, but is typically 1 byte. When in doubt, use sizeof( <type> ) to determine the byte count of any data type.


What data type is a percentage?

Percentage is not a data type. A percentage of something would need a floating point data type to store it. One of the following data types. float double long double (in gcc, not sure about other compiler systems)

Related Questions

How many bytes occupied for arrays?

It all depends on the length and data type of the array...


How many bytes are occupied by int data type?

The int data type typically occupies 4 bytes (32 bits) of memory in most programming languages and systems. However, this can vary depending on the architecture and language; for instance, in some environments, it can be 2 bytes (16 bits) or 8 bytes (64 bits). Always check the specific documentation for the programming language and platform you are using.


How many bytes require to represent a floating point data type?

The number of bytes required to represent a floating point data type depends on its precision. Typically, a single-precision floating point (float) requires 4 bytes, while a double-precision floating point (double) requires 8 bytes. Additionally, some systems may also use extended precision formats, which can require more than 8 bytes.


What is the data type int?

Data-type (short for integer).


What is the size of each data types in bytes in dos and UNIX platform?

In DOS, typical data type sizes are as follows: char is 1 byte, int is usually 2 bytes, long is 4 bytes, and float is 4 bytes, while double is 8 bytes. In UNIX, the sizes can vary depending on the architecture, but commonly: char is 1 byte, int is 4 bytes, long is typically 4 bytes on 32-bit systems and 8 bytes on 64-bit systems, and both float and double remain 4 and 8 bytes respectively. Always check the specific compiler and architecture for precise sizes, as they can differ.


Why long data type converted to double by multiplying by 1.0?

If two numbers are involved in a calculation (in this case a multiplication), the result is converted to the more precise data type, to avoid data loss. Even though between long and double data can be lost in either direction, a number with decimals (such as double) is generally considered to be more precise than a number without decimals (such as long). Even though languages such as Java also have a "float" data type, "double" is normally used by default in cases such as these, because of the greater precision. However, you can convert explicitly to float, if you like, using a cast. (Float uses 4 bytes, while double uses 8 bytes.)


How much memory is required to store an integer data type?

integer data type consumes memory of 4 bytes or 32 bits


What do you mean by data of types?

It specifies wat type of data is stored n memory occupied


In main memory how many bits num variable will hold?

That depends on the programming language, and on the specific data type. Java, for example, has integers of different sizes; for example, an int uses 4 bytes, and a long uses 8 bytes. It also has shorter integer data types. Java also has different types of floating point numbers; for example, a double uses 8 bytes, and a float uses 4 bytes. Java also has classes for arbitrary-precision math (classes BigInt and BigMath); in this case, the size in memory for a number will vary, depending on the number of digits.That depends on the programming language, and on the specific data type. Java, for example, has integers of different sizes; for example, an int uses 4 bytes, and a long uses 8 bytes. It also has shorter integer data types. Java also has different types of floating point numbers; for example, a double uses 8 bytes, and a float uses 4 bytes. Java also has classes for arbitrary-precision math (classes BigInt and BigMath); in this case, the size in memory for a number will vary, depending on the number of digits.That depends on the programming language, and on the specific data type. Java, for example, has integers of different sizes; for example, an int uses 4 bytes, and a long uses 8 bytes. It also has shorter integer data types. Java also has different types of floating point numbers; for example, a double uses 8 bytes, and a float uses 4 bytes. Java also has classes for arbitrary-precision math (classes BigInt and BigMath); in this case, the size in memory for a number will vary, depending on the number of digits.That depends on the programming language, and on the specific data type. Java, for example, has integers of different sizes; for example, an int uses 4 bytes, and a long uses 8 bytes. It also has shorter integer data types. Java also has different types of floating point numbers; for example, a double uses 8 bytes, and a float uses 4 bytes. Java also has classes for arbitrary-precision math (classes BigInt and BigMath); in this case, the size in memory for a number will vary, depending on the number of digits.


What is the data type for 0.38?

The data type for 0.38 is double.


What type of units represents the largest amounts of data?

yottabyte (YB)10008 bytes1,000,000,000,000,000,000,000,000 bytes


What programming data type is 0.00?

The data type 0.00 is of type literal double.