Explain the difference between FLOAT, DOUBLE and REAL.
Answer Posted / sanah
In Computer Science terminology(world) Real numbers are those which have decimal points.
These real numbers are categorized in 2 ways.
1.Float and
2.Double
Memory used by these two differs based on the programming language on which we works.
For Example in C:-
Float:-It uses only 4 bytes of memory
Double:-It uses 8 bytes of memory
The only difference between these two is that---
Float can hold only 4 bytes(ex:2.4509)
Double is used to hold 8 bytes(ex:2.450877777777777777779)
i.e
if(real_no is larger)
{
we go for double;//remember double is a real
}
else
{
we go for float;//remember float is also a real
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Where’s database data actually stored?
How do I transfer data from one database to another in mysql?
In mysql, what is the default storage engine?
Why we use mysql workbench?
what is the default port for mysql server? : Mysql dba
Can u give the example by taking an unnormalized table and make that 1nf and then 25nf, and then 3 nf?
Does mysql scale well?
What is username in mysql?
How show all tables in mysql query?
What are the types of index?
What mysql -u john -p command does?
How do I select a database in mysql?
What tools available for managing mysql server?
How can you plan the logshipping before processing?
What is clob datatype?