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
Is mysql an oracle product?
What are the reasons for selecting lamp (linux, apache, mysql, php) instead of combination of other software programs, servers and operating systems?
How to display top 50 rows?
What happens if you no create privilege in a database?
How to shutdown mysql server?
How to create a new table by selecting rows from another table in mysql?
What is table level locking in mysql?
What is strict mode in mysql?
What is a blob datatype?
What is mysql command line?
What are the difference between now and current_date in mysql?
What is the difference between the primary and unique key in mysql?
Is pdo more secure than mysqli?
How do I stop a mysql command?
What is foreign key in mysql?