Assign the value of √3 (1.732) to a variable with the requisite data type .
Answers
Answered by
53
double a=Math.sqrt(3);
Answered by
10
Answer:
"Double Float data type" will be used to assign the value of (1.732) to a variable. "Double Float data type" is a computer data type that occupies 64 bit in the memory. "Fractional values" are used to represent using "float data type". "Single precision" is "32 bit base 2" and "double" refers to "64 bit base 2" as per IEEE 754-1985. One of the initial programming language to provide single and double precision floating data point was "FORTRAN".
Using "Double data type", can be assigned as,
double a=math.sqrt{3};
Similar questions